Degree and Hour Angle Equivalents
PHP Program by Jay Tanner - 2025
Angular Argument String
View/Copy PHP Source Code
Double-Click Within Text Area to Select ALL Text
GENERAL ANGULAR EQUIVALENTS ------------------------------ Degree Angle Context = 1° 00' 00.000" = 1.0000000000000000 ° = 0.06666666666666 h = 00h 04m 00.000s = 0.017453292519943 rad sin = 0.017452406437284 cos = 0.99984769515639 tan = 0.017455064928218 ------------------------------ Hour Angle Context = 01h 00m 00.000s = 1.0000000000000000 h = 15.00000000000000 ° = 15° 00' 00.000" = 0.26179938779915 rad sin = 0.25881904510252 cos = 0.96592582628907 tan = 0.26794919243112
Double-Click Within Text Area to Select ALL Text
GENERAL INFORMATION This program simply computes degree and hour angle equivalents for a given angular argument expressed in decimal or sexagesimal format. The angular input argument can be entered as a string of one to three numerical elements. For example, a single input '1.25' would be interpreted as 1.25 degrees or hours of arc or time. The dual input '5 35' would be interpreted as 5 or degrees or hours and 35 minutes of arc or time. The triple input '17 02 03.456' would be interpreted as 17 degrees or hours and 3 minutes and 3.456 seconds of arc or time. Anything following the third element is ignored. The program also displays the angle in radians and its basic circular trigonometric functions, the sine, cosine and tangent.
PHP Program by Jay Tanner
v2.0 - Revised: 1970-January-01-Thursday at Local Time 12:00:00 AM (UTC−05:00)