diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3782/CH3/EX3.16 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3782/CH3/EX3.16')
-rw-r--r-- | 3782/CH3/EX3.16/Ex3_16.sce | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/3782/CH3/EX3.16/Ex3_16.sce b/3782/CH3/EX3.16/Ex3_16.sce new file mode 100644 index 000000000..6f62199fc --- /dev/null +++ b/3782/CH3/EX3.16/Ex3_16.sce @@ -0,0 +1,48 @@ + + +// +//given + +BB_AB=330+(15/60) +BB_BC=200+(30/60) +BB_CD=115+(45/60) +BB_DE=38+(0/60) +BB_EA=300+(30/60) + +//calculations +exteriorA=BB_EA-(150+(15/60)) +interiorA=360-exteriorA +exteriorB=BB_AB-(20+(30/60)) +interiorB=360-exteriorB +interiorC=(295+(45/60))-BB_BC +interiorD=218-BB_CD +interiorE=(120.5)-BB_DE + +//convert into mins and degrees +deg1=int(exteriorA) +mins1=int((exteriorA-deg1)*60) +deg2=int(interiorA) +mins2=int((interiorA-deg2)*60) +deg3=int(exteriorB) +mins3=int((exteriorB-deg3)*60) +deg4=int(interiorB) +mins4=int((interiorB-deg4)*60) +deg5=int(interiorC) +mins5=int((interiorC-deg5)*60) +deg6=int(interiorD) +mins6=int((interiorD-deg6)*60) +deg7=int(interiorE) +mins7=int((interiorE-deg7)*60) + +n=5 +check=(2*n-4)*90 +summ=interiorA+interiorB+interiorC+interiorD+interiorE + +printf("\n exterior angle A %0.3f degrees %0.3f minutes",deg1,mins1) +printf("\n interior angle A %0.3f degrees %0.3f minutes",deg2,mins2) +printf("\n Exterior angle B %0.3f degrees %0.3f minutes",deg3,mins3) +printf("\n interior angle B %0.3f degrees %0.3f minutes",deg4,mins4) +printf("\n interior angle C %0.3f degrees %0.3f minutes",deg5,mins5) +printf("\n interior angle D %0.3f degrees %0.3f minutes",deg6,mins6) +printf("\n interior angle E %0.3f degrees %0.3f minutes",deg7,mins7) +printf("\n %0.3f degrees %0.3f degrees W",check,summ) |