Miguel_DeGracia_19481379_lab1 - % Lab Assignment 1. Miguel...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
%% Lab Assignment 1. Miguel De Gracia. 19481379. Section 22. % %% Problem 1. % %For problem 1 both x and y have been defined. (x=3, y=7). x=3 y=7 y %% Probelm 1a % (x-(1/y^3))^-2 ( %% Problem 1b % x^(1/3)+x^(1/y) x %% Problem 1c % exp(log10(y-x)) e %% Problem 1d % ((x-1)^(y-3))/((exp(y^x))+(exp(y)^x)) ( %% Problem 1e log(sin(abs(x-y))) l %% Problem 1f % log2(asin(x/y)) l %% Problem 1g % atan((x^2+y^2)/(sqrt(x^2+1))) a %% Problem 2 % %Client starts with a total of $12000. There is a monthly interest of 1% %that is cancelled if she makes any transactions. If the money is untouched %for four months there is an additional 3% interest. She makes a $3000 %deposit in March, and $2000 in November. % NetAmountOfMoney=(((((((((((((12000*1.01)*1.01)+3000)*1.01)*1.01)*1.01)*1.01)*1.03) *0.95)*.85)*1.01)+2000)*1.01); disp('NetAmountOfMoney='); disp(NetAmountOfMoney); d %% Problem 3 % %Working with MATLAB's defined variables:Inf, NaN, pi, and i. % %% Problem 3a % 10/0
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
log(0) n=1000000000 2^n 2 %% Problem 3b
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at University of California, Berkeley.

Page1 / 4

Miguel_DeGracia_19481379_lab1 - % Lab Assignment 1. Miguel...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online