summaryrefslogtreecommitdiff
path: root/2915/CH2/EX2.3/Ex2_3.sce
blob: 47377dd0076d082dbfe88960e605cc298400d3b9 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 2.3
//To solve the triangle when 2 sides and opposite angle is given
clc,clear

a=5 //side oposite to vertex A
A=30 //angle at vertex A
b=12 //side opposite to vertex B

sin_B=(b/a)*sind(A) //law of sines
printf("sin(B)=%f.  But magnitude of sin(B) should be less than 1\nHence,there is no solution",sin_B)