Anonymous user
Trigonometric functions: Difference between revisions
→{{header|BASIC}}: Changed the arc functions to print the answer in degrees and radians rather than use two different angles.
(Added BASIC example.) |
(→{{header|BASIC}}: Changed the arc functions to print the answer in degrees and radians rather than use two different angles.) |
||
Line 73:
PRINT TAN(radians) + " " + TAN (degrees) 'tangent
'arcsin
PRINT arcsin + " " + arcsin * 180 / pi
'arccos
PRINT
PRINT ATN(radians) + " " + ATN (radians) * 180 / pi 'arctan
=={{header|Forth}}==
|