Jump to content

Trigonometric functions: Difference between revisions

no edit summary
(Added an ActionScript version.)
No edit summary
Line 448:
acos 0.5, toDegrees (acos 0.5),
atan 0.5, toDegrees (atan 0.5)]</lang>
 
=={{header|HicEst}}==
Translated from Fortran:
<lang hicest>pi = 4.0 * ATAN(1.0)
dtor = pi / 180.0
rtod = 180.0 / pi
radians = pi / 4.0
degrees = 45.0
WRITE(ClipBoard) SIN(radians), SIN(degrees*dtor)
WRITE(ClipBoard) COS(radians), COS(degrees*dtor)
WRITE(ClipBoard) TAN(radians), TAN(degrees*dtor)
WRITE(ClipBoard) ASIN(SIN(radians)), ASIN(SIN(degrees*dtor))*rtod
WRITE(ClipBoard) ACOS(COS(radians)), ACOS(COS(degrees*dtor))*rtod
WRITE(ClipBoard) ATAN(TAN(radians)), ATAN(TAN(degrees*dtor))*rtod</lang>
<lang hicest>0.7071067812 0.7071067812
0.7071067812 0.7071067812
1 1
0.7853981634 45
0.7853981634 45
0.7853981634 45</lang>
SINH, COSH, TANH, and inverses are available as well.
 
=={{header|IDL}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.