diff options
Diffstat (limited to '3782/CH3/EX3.24')
-rw-r--r-- | 3782/CH3/EX3.24/Ex3_24.sce | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/3782/CH3/EX3.24/Ex3_24.sce b/3782/CH3/EX3.24/Ex3_24.sce new file mode 100644 index 000000000..390f920e5 --- /dev/null +++ b/3782/CH3/EX3.24/Ex3_24.sce @@ -0,0 +1,69 @@ + + +// +//given + +BB_AB=239+(00/60) +BB_BC=317+(0/60) +BB_CD=36+(30/60) +BB_DE=29+(00/60) +BB_EA=138+(45/60) + +FB_AB=59+(0/60) +FB_BC=139+(30/60) +FB_CD=215+(15/60) +FB_DE=208+(0/60) +FB_EA=318+(30/60) + +//(a) +includedA=-FB_AB+BB_EA +includedB=-FB_BC+BB_AB +includedC=BB_BC-FB_CD +includedD=360-(171+(30/60)) +exteriorD=FB_DE-BB_CD +exteriorE=FB_EA-BB_DE +includedE=360-(289+(30/60)) + + +//convert into mins and degrees +deg1=int(includedA) +mins1=int((includedA-deg1)*60) +deg2=int(includedB) +mins2=int((includedB-deg2)*60) +deg3=int(includedC) +mins3=int((includedC-deg3)*60) +deg4=int(exteriorD) +mins4=int((exteriorD-deg4)*60) +deg5=int(includedD) +mins5=int((includedD-deg5)*60) +deg6=int(exteriorE) +mins6=int((exteriorE-deg6)*60) +deg7=int(includedE) +mins7=int((includedE-deg7)*60) + +n=5 +check=(2*n-4)*90 +summ=includedA+includedB+includedC+includedD+includedE + +printf("\n included angle A= %0.3f degrees %0.3f minutes",deg1,mins1) +printf("\n included angle B= %0.3f degrees %0.3f minutes",deg2,mins2) +printf("\n included angle C= %0.3f degrees %0.3f minutes",deg3,mins3) +printf("\n exterior angle D= %0.3f degrees %0.3f minutes",deg4,mins4) +printf("\n included angle D= %0.3f degrees %0.3f minutes",deg5,mins5) +printf("\n exterior angle D= %0.3f degrees %0.3f minutes",deg6,mins6) +printf("\n included angle E= %0.3f degrees %0.3f minutes",deg7,mins7) +printf("\n %0.3f degrees %0.3f degrees ",check,summ) +//(b) +printf("\n %0.3f correct %0.3f correct %0.3f correct", FB_AB,FB_BC,BB_AB) + + + +FB_CD=(215+(15/60))+(2+(30/60)) +BB_CD=(37+(45/60)) +correctionatD=(1+(15/60)) +FB_DE=(208+(0/60))+correctionatD +FB_EA=(318+(30/60))+(0+(15/60)) + + +printf("\n correction= %0.3f ",correctionatD) +printf("\n corrected values are:") |