Fiveash_Lab1.pdf

# Fiveash_Lab1.pdf - Lab 1 Zachary Fiveash MAT 275 Exercise 1...

• Lab Report
• 7

This preview shows page 1 - 3 out of 7 pages.

Lab 1 - Zachary Fiveash - MAT 275 Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = [0,pi/8,pi/6,pi/5,(6*pi)/5,(7*pi)/6,(8*pi)/7]; % Define radius. r = 4; % Define x and y in terms of theta and r. x = r*cos(theta); y = r*sin(theta); % Check that x and y satisfy the equation of a circle. r1 = sqrt(x.^2+y.^2) Explain results here. Do x and y satisfy the equation of a circle? Why or why not? How does the vector output at the end confirm your answer? Yes, the results confirm that x and y satisfy the equation of the circle. Both r and r1 equal 4 which confirms this answer. Exercise 2 % Define t-vector. t = 4:0.2:20; % Define y-vector. y = exp(t/15).*cos(2.*t)/(0.2.*t.^2+14) Part (a) % Plot results (should have 3 plots total). figure; plot(t,y, 'k' ); title( 'e^{t/15}cos(2t))/(0.2*t^{2}+14)' );

Subscribe to view the full document.

Part (b) % Plot results as data points only and as data points with line.
• Fall '08
• NIKITIN
• Zachary Fiveash

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