Anonymous user
Trigonometric functions: Difference between revisions
→{{header|Autolisp}}
No edit summary |
|||
Line 339:
Function arguments are expressed in radians.
<lang Autolisp>
(defun rad_to_deg (rad)(* 180.0 (/ rad
(defun deg_to_rad (deg)(*
(defun asin (x)
Line 374:
("atan pi/12 rad" 0.256053 "atan 15 deg" 14.6707))
</pre>
=={{header|AWK}}==
Awk only provides <tt>sin()</tt>, <tt>cos()</tt> and <tt>atan2()</tt>, the three bare necessities for trigonometry. They all use radians. To calculate the other functions, we use these three trigonometric identities:
|