summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.17/Ex2_17.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2409/CH2/EX2.17/Ex2_17.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2409/CH2/EX2.17/Ex2_17.sce')
-rwxr-xr-x2409/CH2/EX2.17/Ex2_17.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2409/CH2/EX2.17/Ex2_17.sce b/2409/CH2/EX2.17/Ex2_17.sce
new file mode 100755
index 000000000..078756ca0
--- /dev/null
+++ b/2409/CH2/EX2.17/Ex2_17.sce
@@ -0,0 +1,18 @@
+
+//Variable Declaration
+pi = %pi
+T=1.009638376 //Time in Julian centuries from Example 2.11
+UT=13 //Universal time(hours)
+
+//Calculation
+
+GST=(99.6910+36000.7689*T+0.004*T**2)*3.142/180 //GST(radians)
+UT=2*pi*UT/24 //Universal time converted to fraction of earth rotation (radians)
+
+GST=GST+UT
+
+
+GST=(modulo(GST,2*pi))*180/pi
+
+//Result
+printf("The GST for given date and time is %.2f degrees",GST)