CH4scripts

CH4scripts - %Ch 4 scripts % Scripts for Chapter 4 hold on...

This preview shows pages 1–2. Sign up to view the full content.

scripts % Scripts for Chapter 4 hold on x = -2:0.01:2; plot(x, exp(x)) plot(x, sinh(x)) plot(x, cosh(x)) plot([-2 2], [0 0]) plot([0 0], [-4 8]) hold off % % % Script prepared by D. T. Valentine - September 2006. % % The question raised is: What range of angles, i.e., % which of the four quadrants of the circle from 0 to % 2*pi are the angular outputs of each of the functions? % % Determine the values of x to be examined: % x = -1:0.001:1; % % Compute the arc-functions: % y1 = acos(x); y2 = asin(x); y3 = atan(x); % % Convert the angles from radians to degrees: % y1 = 180*y1/pi; y2 = 180*y2/pi; y3 = 180*y3/pi; % % Plot the results: % plot(y1,x,y2,x,y3,x),grid,legend('asin(x)', 'acos(x)','atan(x)') xlabel('\theta in degrees') ylabel('x, the argument of the function') % % REMARKS: Note the following: % (1) The acos(x) varies from 0 to 90 to 180 degrees. % (2) The asin(x) varies from -90 to 0 to 90 degrees. % (3) The atan(x) varies from -45 to 0 to 45 degrees.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/06/2011 for the course HANDOUT 502 at USC.

Page1 / 2

CH4scripts - %Ch 4 scripts % Scripts for Chapter 4 hold on...

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

View Full Document
Ask a homework question - tutors are online