Function reference · Trigonometry
cos
Computes the cosine of an angle in radians.
Nerdamer returns exact symbolic values for common rational multiples of pi, simplifies cosine's even symmetry, and evaluates supported inverse-trigonometric compositions.
Examples
These examples use Nerdamer Notation.
Use an exact special angle.
cos(pi/3) // → 1/2
Keep a symbolic angle.
cos(x)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
cos(arg1)
nerdamer.cos
Call the operation through the default nerdamer import.
nerdamer.cos(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The angle in radians. |
Returns
Expression — The cosine of `x`.
