Use MATLAB to calculate the following values use format shor

Use MATLAB to calculate the following values; use format short: a = 4*5* cosine (pi/3) - (ln(1.24))^1/3 * tangent(pi/3) b = (2*tangent(30 degree))^2/15_log(14)* e^1/8/12 - 25/12 +Sine(30 degree) For number 3, use format long. Use three different MATLAB commands to solve the following squareroot: c = 17^1/2 For number 4, use format short e. 4a-cosine (45 degree) tangent(2pi/3) e^2/3 log(27) In(0.1) For the rest of the calculations, use format short. For each part, use MATLAB commands to determine the quotient rounded toward positive infinity and to determine the remainder. 27/8 512/19 73/18 1025/617

Solution

1,2,3

format short
ln = @(x)(log(x));
a = 4*5*cos(pi/3)-(ln(1.24))^(1/3)*tan(pi/3);
b = ((2*tan(pi/6))^2)/15-log(14)*(exp(1/8))/12-25/(12+sin(pi/6));
disp(a);
disp(b);
format long
c=sqrt(17);
d=nthroot(17,2);
e=17^(0.5);
disp(c);
disp(d);
disp(e);

4)

format short e
a=cos(pi/4);
b=tan(2*pi/3);
c=e^(1);
d=log(27);
e=ln(0.1);
disp(a);
disp(b);
disp(c);disp(d);
disp(e);

 Use MATLAB to calculate the following values; use format short: a = 4*5* cosine (pi/3) - (ln(1.24))^1/3 * tangent(pi/3) b = (2*tangent(30 degree))^2/15_log(14)

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site