Inputs
Outputs
For example,
45 degrees returns approximately 1.
Tangent is undefined at angles such as
90° and π / 2. Floating-point
arithmetic may return a very large finite value near those angles instead of
an explicit error.