Trigonometric functions: Difference between revisions

Content added Content deleted
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble, added bullet points for the task.)
Line 1: Line 1:
{{task|Arithmetic operations}} [[Category:Mathematics]]
{{task|Arithmetic operations}}
[[Category:Mathematics]]
If your language has a library or built-in functions for trigonometry, show examples of sine, cosine, tangent, and their inverses using the same angle in radians and degrees.


;Task:
For the non-inverse functions, each radian/degree pair should use arguments that evaluate to the same angle (that is, it's not necessary to use the same angle for all three regular functions as long as the two sine calls use the same angle).
If your language has a library or built-in functions for trigonometry, show examples of:
::*   sine
::*   cosine
::*   tangent,     and
::*   their inverses
<br>using the same angle in radians and degrees.


For the non-inverse functions, &nbsp; each radian/degree pair should use arguments that evaluate to the same angle &nbsp; (that is, it's not necessary to use the same angle for all three regular functions as long as the two sine calls use the same angle).
For the inverse functions, use the same number and convert its answer to radians and degrees.


For the inverse functions, &nbsp; use the same number and convert its answer to radians and degrees.
If your language does not have trigonometric functions available or only has some available, write functions to calculate the functions based on any [[wp:List of trigonometric identities|known approximation or identity]].

If your language does not have trigonometric functions available or only has some available, &nbsp; write functions to calculate the functions based on any &nbsp; [[wp:List of trigonometric identities|known approximation or identity]].
<br><br>


=={{header|ACL2}}==
=={{header|ACL2}}==