This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Rπ ) . 8. Set x = 2, y =4 and z = x y . Then calculate q = ± ( x + y ) zyz z ( xy ) ² x + yz + y cos( x ) + ezln (5 z + 2 x + 3 y x ) 9. Calculate y = 1 2 ( e x + ex ) for x = 0, 1, 2, 3, 4, 5. 10. Calculate p = s1 s +1 for s = 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4. Write a MATLAB script (mﬁle) that 11. Saves in diﬀerent variable names the sum ( x + y ), diﬀerence ( xy ), product ( x * y ) and quotient ( x/y ) of two workspace variables x and y . Use variable names that clearly show which operation you calculated. Run the script from the command window for x = 3 and y = 2 and x = 2 and y =3....
View
Full
Document
This note was uploaded on 04/29/2009 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.
 Spring '07
 Hayes

Click to edit the document details