Trigonometric functions: Difference between revisions

→‎{{header|J}}: Commentary clarified.
(→‎{{header|BASIC}}: Forgot to give ATN an argument and changed for new requirements.)
(→‎{{header|J}}: Commentary clarified.)
Line 91:
 
=={{header|J}}==
The [http://www.jsoftware.com/help/dictionary/dodot.htm circle functions] in J include trigonometric functions. Native operation is in radians, so resultsvalues in degrees involvesinvolve conversion.
 
Sine, cosine, and tangent of a single angle, indicated as pi-over-four radians and as 45 degrees.
>,:(1&o. ; 2&o. ; 3&o.) (4%~o. 1), 180 %~ o. 45
0.707107 0.707107
0.707107 0.707107
1 1
Arcsine, arccosine, and arctangent of 0one-half, in radians and degrees.5
>,:([ , 180p_1&*)&.> (_1&o. ; _2&o. ; _3&o.) 0.5
0.523599 30
Anonymous user