summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.18/Ex2_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '2409/CH2/EX2.18/Ex2_18.sce')
-rwxr-xr-x2409/CH2/EX2.18/Ex2_18.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2409/CH2/EX2.18/Ex2_18.sce b/2409/CH2/EX2.18/Ex2_18.sce
new file mode 100755
index 000000000..b4a0690f4
--- /dev/null
+++ b/2409/CH2/EX2.18/Ex2_18.sce
@@ -0,0 +1,15 @@
+
+//Variable Declararion
+pi = %pi
+WL=-89.26 //Expressing the longitude in degrees west
+GST=282.449 //GST from Example 2.17 (degrees)
+
+//Calculation
+
+EL=2*pi+WL //Longitude in degrees East
+LST=(GST+EL)*pi/180 //LST(radians)
+LST=(modulo(LST,2*pi))*180/pi //fmod removes multiple revolutions(Degrees)
+
+//Results
+printf("LST for Thunder Bay on given day is: %.2f Degrees",LST)
+