Trigonometric Functions#
- sin(x)#
Sine function.
- Parameters:
x (Real) – The angle in radians.
- Definition:
\(\sin(x)\)
- Domain:
\((-\infty, \infty)\)
- Range:
\([-1, 1]\)
- Returns:
The value of \(\sin(x)\).
- Return type:
Real
- cos(x)#
Cosine function.
- Parameters:
x (Real) – The angle in radians.
- Definition:
\(\cos(x)\)
- Domain:
\((-\infty, \infty)\)
- Range:
\([-1, 1]\)
- Returns:
The value of \(\cos(x)\).
- Return type:
Real
- tan(x)#
Tangent function.
- Parameters:
x (Real) – The angle in radians.
- Definition:
\(\tan(x) = \dfrac{\sin(x)}{\cos(x)}\)
- Domain:
\(x \neq \dfrac{\pi}{2} + n\pi \ (n \in \mathbb{Z})\)
- Range:
\((-\infty, \infty)\)
- Returns:
The value of \(\tan(x)\).
- Return type:
Real
- asin(x)#
Arcsine function.
- Parameters:
x (Real) – The value to take the arcsine of.
- Definition:
\(\arcsin(x)\), the inverse function of \(\sin(x)\).
- Domain:
\([-1, 1]\)
- Range:
\(\left[-\dfrac{\pi}{2}, \dfrac{\pi}{2}\right]\)
- Returns:
The value of \(\arcsin(x)\) in radians.
- Return type:
Real
- acos(x)#
Arccosine function.
- Parameters:
x (Real) – The value to take the arccosine of.
- Definition:
\(\arccos(x)\), the inverse function of \(\cos(x)\).
- Domain:
\([-1, 1]\)
- Range:
\([0, \pi]\)
- Returns:
The value of \(\arccos(x)\) in radians.
- Return type:
Real
- atan(x)#
Arctangent function.
- Parameters:
x (Real) – The value to take the arctangent of.
- Definition:
\(\arctan(x)\), the inverse function of \(\tan(x)\).
- Domain:
\((-\infty, \infty)\)
- Range:
\(\left(-\dfrac{\pi}{2}, \dfrac{\pi}{2}\right)\)
- Returns:
The value of \(\arctan(x)\) in radians.
- Return type:
Real
- atan2(y, x)#
Arctangent function of two variables, using the signs of both arguments to determine the quadrant of the result.
- Parameters:
y (Real) – The y-coordinate.
x (Real) – The x-coordinate.
- Definition:
\(\mathrm{atan2}(y, x)\), the angle in radians between the positive x-axis and the ray to the point \((x, y)\).
- Domain:
\((x, y) \neq (0, 0)\)
- Range:
\((-\pi, \pi]\)
- Returns:
The value of \(\mathrm{atan2}(y, x)\) in radians.
- Return type:
Real