Quiz1_Solution - result = ((z*(x-y) + x^(z+y)) / (y/z -

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

View Full Document Right Arrow Icon
Quiz 1: Calculations Name: ASE 201 Write the code (BE SURE TO USE MATLAB NOTATION!) to 1. Set the variable a to 10 and the variable b to 45 . Then calculate c = ln ( a ) + a sin ( b ) a = 10; b= 45; c = log(a) + a * sind(b) 2. Set the variable x to 5, the variable y to -2, and the variable z to 0.25. Then calculate result = ± z ( x - y ) + x z + y y z - x 2+ y (5 z - 2 y ) ² xyz x = 5; y = -2; z = 0.25;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: result = ((z*(x-y) + x^(z+y)) / (y/z - x^(2+y)*(5*z-2*y)))^(x*y*z) 3. Create the variable y given by the set of data { 1 ,-2 , . 5 , 5 ,-3 } . Then calculate z = 2 ( y + 3) y + ye y for all values of y . >> y = [1,-2,0.5,5,-3]; >> z = 2*(y+3).^y + y.*exp(y)...
View Full Document

This note was uploaded on 02/14/2010 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.

Ask a homework question - tutors are online