Function reference · Math
radians
Converts an angle in degrees to radians exactly.
radians(x) multiplies the input by pi/180. Symbolic inputs remain exact rather than being converted to a decimal approximation.
Examples
These examples use Nerdamer Notation.
Convert a half-turn to pi radians.
radians(180)
// → piConvert 45 degrees to an exact fraction of pi.
radians(45)
// → (1/4)*piKeep a symbolic degree measure exact.
radians(x)
// → (1/180)*x*piInterfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
radians(arg1)
nerdamer.radians
Call the operation through the default nerdamer import.
nerdamer.radians(x: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | — |
