Answer the questions below in a typed document numbered appr

Answer the questions below in a typed document, numbered appropriately. Print out this sheet as a cover page. Bring the completed assignment to your next lab class. In the upcoming lab, you are going to be learning to use the MATLAB computation software to calculate various basic mathematical functions. Solve the following mathematical problems by hand/calculator. (Problems are taken your course textbook, and from Getting Started with Matlab, by Rudra Pratap.) Compute the following quantities. In MATLAB and C, all trigonometric functions operate in units of radians. 2^5/2^5 - 1 (1-1/2^5)^-1 3 Squareroot 5 - 1/(Squareroot 5 + 1)^2 - 1 Area = pi r^2, with r = pi^1/3 - 1 e^3 ln(e^3) log_10 (e^3) log_10 (10^5) e^pi Squareroot 163 sin (pi/6) cos (pi) tan (pi/2) sin^2 (pi/6) + cos^2 (pi/6) y=cosh^2x - sinh^2x, with x = 32 pi Find the distance between the coordinates (1, 5) and (4, 7) Find the distance between the coordinates (-1, 6) and (2, 4) Find the distance between the coordinates (1, 0) and (5, 7) Find the distance between the coordinates (2, 4) and (2, 4)

Solution

Below are Build-in Functions & Predefined Variables directly can compute the values

1.

>> a=2^5/2^5 -1 ; %A semicolon suppresses screen output. You can recall the value of a by typing a

>>a

2.

>>x=(1-2^(-5))^(-1) ;

>>x

3.

value=(3*(sqrt(5)-1)/(sqrt(5)+1)^2)-1;

>>value

4.

r=(pi^(1/3))-1; % calculate r value set radius;declare variable r

area= pi*r^2 % compute the area of the circle

5.

>>exp(3); <enter> % calculates e^3

6.

>>log(exp(3)) <enter>

7.

>>log10(exp(3)) <enter>

8.

>>log10(10^5) <enter>

9.

>>exp(pi*sqrt(163)) <enter>

10.

>>sin(pi/6)

 Answer the questions below in a typed document, numbered appropriately. Print out this sheet as a cover page. Bring the completed assignment to your next lab c

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site