summaryrefslogtreecommitdiff
path: root/2915/CH2/EX2.11/Ex2_11.sce
blob: b4f0bf0364b63211c5966311a608c6c779cbcdf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example 2.11
//To check the solution of triangle using Mollweide equation
clc,clear

c=6.09 //side oposite to vertex C
a=5 //side opposite to vertex A
b=3 //side opposite to vertex B

A=54.7 //angle at vertex A
B=29.3 //angle at vertex B
C=96 //angle at vertex C

LHS = (a-b)/c
RHS = sind((A-B)/2)/cosd(C/2)
printf(' LHS =  (a-b)/c               = %.4f\n',LHS)
printf('  RHS =  sin((A-B)/2)/cos(C/2) = %.4f\n\n',RHS)

printf('Small difference in LHS and RHS is due to rounding off.\ni.e.Mollweides equation is holding true.\n')
printf('THE SOLUTION OF TRIANGLE IS CORRECT')