summaryrefslogtreecommitdiff
path: root/2990/CH5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2990/CH5
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '2990/CH5')
-rw-r--r--2990/CH5/EX5.3/Ex5_4.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2990/CH5/EX5.3/Ex5_4.sce b/2990/CH5/EX5.3/Ex5_4.sce
new file mode 100644
index 000000000..bf51894bf
--- /dev/null
+++ b/2990/CH5/EX5.3/Ex5_4.sce
@@ -0,0 +1,26 @@
+
+funcprot(0);
+// Initialization of Variable
+function[dms]=degtodms(deg)
+ d = int(deg)
+ md = abs(deg - d) * 60
+ m = int(md)
+ sd = (md - m) * 60
+ sd=round(sd*100)/100
+ dms=[d m sd]
+endfunction
+LMT=21+23.0/60+05.0/3600//local chronometer time
+Long=65.0+19.0/60//longitude
+GST=13+15.0/60+20.0/3600;
+RA=9+32.0/60+15.0/3600;
+Long2=82.0+30.0/60//longitude of India
+//calculation
+e1=Long/15*9.8565/3600//error
+SIT=RA+24-GST+e1//sidereal time interval after LMM
+e2=SIT*9.8296/3600//error
+MI=SIT-e2//mean interval after LMM
+LMT=LMT-(Long2-Long)/15.0;
+CE=MI-LMT;
+CE=degtodms(CE);
+disp(CE,"chronometer error in hours,min,sec respectively");
+clear()