lab01.m - TASK01 clc;clear ans0 =(sin(4*pi*exp-0.6 log(3(1.2*10e-17-sqrt(2.5 TASK02 clc;clear a = 1 b = 2 c = a/b ans1 =(tan(c(1 c^2 disp(ans1 TASK03

# lab01.m - TASK01 clc;clear ans0 =(sin(4*pi*exp-0.6...

• Lab Report
• 1

This preview shows page 1 out of 1 page.

%% TASK01 clc;clear; ans0 = (sin(4*pi*exp(-0.6))+log(3))/(1.2*10e-17-sqrt(2.5)); %% TASK02 clc;clear; a = 1; b = 2; c = a/b; ans1 = (tan(c))/(1+c^2); disp(ans1); %% TASK03 clc;clear; x = 8.97e5; ans1naive = 1.2*x^3 - 7.4*x^2 - 6.3*x + 5.8; ans1efficient = ((1.2*x - 7.4)*x - 6.3)* x + 5.8; ans2naive = 1.8 - 2.8*x + 3.4*x^2 - 9.5*x^3 - 0.7*x^4; ans2efficient = 1.8 - x*(((2.8*x + 3.4)*x-9.5)*x-0.7); %% TASK04 clc;clear;

#### You've reached the end of your free preview.

Want to read the whole page?

Unformatted text preview: left = 1 + 0.4999*eps; valLeft = left - 1; disp(valLeft); right = 1 + 0.5001*eps; valRight = right - 1; disp(valLeft); %% TASK05 clc;clear; p = 3*((4/3)-1)-1; %this should equal to zero disp(p); q = 3 * (1/3) - 1; %this will be equal to zero disp(q); %% TASK06 clc;clear; x = 1.9897678416540875; ans6 = x*(1/x)-1; disp(ans6); x2 = 1.9897678416540874; ans6b = x*(1/x)-1; disp(ans6b);...
View Full Document

• Fall '09
• K.MingLeung

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern