No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7

by

 

13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

ex082.m
% ex082.m: Triangle with Two Sides and One Angle Known
format long
disp('The two sides and the angle:')
a=4.1,  b=9.1,  A=20/180*pi  		
disp('Use the sine theorem to obtain sin(B), then B and C')
sB=b*sin(A)/a,  B=asin(sB),  C=pi-A-B
disp('Calculate the side c by the sine theorem')
c=a*sin(C)/sin(A)				
disp('Convert the angles to degrees')
Adg=A/pi*180,  Bdg=B/pi*180,  Cdg=C/pi*180
disp('Repeat to find the second solution')
a=4.1,  b=9.1,  A=20/180*pi
sB=b*sin(A)/a,  B=pi-asin(sB),  C=pi-A-B	
disp('Convert the angles to degrees')
Adg=A/pi*180,  Bdg=B/pi*180,  Cdg=C/pi*180

Contact us