{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Quiz1_Solution

# Quiz1_Solution - result =(z(x-y x^(z y(y/z x^(2...

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

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;
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

{[ snackBarMessage ]}

Ask a homework question - tutors are online