You are on page 1of 1

%Chapter 1 Problem #5 part a

x = cosd(7*pi/9);
y = tand((7/15)*pi);
z = sind(15);
Answer = x+y*z;
fprintf('This is the answer for Chapter 1 Problem 5 part a = %5.2f\n',
Answer);
%Chapter 1 Problem #5 Part b
a = sind(80).^2;
b = (cosd(14)*sind(80))^2;
c = nthroot(0.18,3);
d = a-b/c;
fprintf('This is the answer for Chapter 1 Problem 5 part b = %5.2f\n\n
\n''%5.2f',d);
This is the answer for Chapter 1 Problem 5 part a = 1.01
This is the answer for Chapter 1 Problem 5 part b = -0.65

'

Published with MATLAB R2015a

You might also like