comparison - else fprintf('x and y are not equal: x-y =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 function comparison theta = pi/6 x = tan(theta) y = sin(theta)/cos(theta) if x == y fprintf('x and y are equal\n')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else fprintf('x and y are not equal: x-y = %e\n', x-y) end...
View Full Document

This note was uploaded on 09/05/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online