Anonymous user
Trigonometric functions: Difference between revisions
→{{header|Java}}: Now uses Math functions to convert to and from degrees and radians, syntax highlighting
m (More works with's) |
(→{{header|Java}}: Now uses Math functions to convert to and from degrees and radians, syntax highlighting) |
||
Line 107:
Java's <tt>Math</tt> class contains all six functions and is automatically included as part of the language. The functions all accept radians only, so conversion is necessary when dealing with degrees. The <tt>Math</tt> class also has a <tt>PI</tt> constant for easy conversion.
}</java>
Output:
|