Trigonometric functions: Difference between revisions

No edit summary
Line 339:
Function arguments are expressed in radians.
<lang Autolisp>
(defun rad_to_deg (rad)(* 180.0 (/ rad _piPI)))
(defun deg_to_rad (deg)(* _piPI (/ deg 180.0)))
 
(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:
Anonymous user