From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2409/CH2/EX2.17/Ex2_17.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2409/CH2/EX2.17/Ex2_17.sce (limited to '2409/CH2/EX2.17/Ex2_17.sce') 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) -- cgit