Help with this would be great, Im looking to build a function that returns prayer times, I have the mathematical equation - but I did'nt stick in at maths at school and it makes no sense. Is it possible to convert this to PHP ??? any help at all would be great.
here is the equation:
(R-L) T
Z = 12+ ----- + --- ........1
15 60
1 {sin(-0.8333-0.0347(H)^0.5)}-sinD.sinB
U= -- arccos -------------------------------------- ........2
15 cosD.cosB
1 -sinG-sinD.sinB
V= -- arccos --------------- ........3
15 cosD.cosB
1 sin{arccot(1+tan ABS(B-D))}-sinD.sinB
W= -- arccos ------------------------------------- ........4
15 cosD.cosB
1 sin{arccot((2+tan ABS(B-D)}-sinD.sinB
X= -- arccos ------------------------------------- ........5
15 cosD.cosB
where
B= latitude of place
L= longitude of place
R= reference longitude (i.e. TIME BAND x 15)
H= height above sea level in metres
D= declination angle of sun from celestial equator (-ve in southern hemisphere)
T= mean time - real time difference, i.e. equation of time
G= twilight angle
ABS = absolute value of
Fajr = Z-V
Sunrise = Z-U
Zuhr = Z
Asr1 (Shafi) = Z+W
Asr2 (Hanafi) = Z+X
Maghrib/Sunset = Z+U
Isha = Z+V