summaryrefslogtreecommitdiff
path: root/2409/CH2/EX2.18/Ex2_18.sce
blob: b4a0690f43310710b161520d8aa3c9119ad189d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)