Function reference · Math

radians

Converts degrees to radians, exactly.

It multiplies by pi/180 and keeps the result exact.

Notation

radians(x)

Write it in an expression: nerdamer('radians(180)'), or in the Playground.

nerdamer.radians

nerdamer.radians(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

180 degrees is pi.

radians(180)
// → pi
Open in Playground

45 degrees.

radians(45)
// → (1/4)*pi
Open in Playground

A symbolic angle.

radians(x)
// → (1/180)*x*pi
Open in Playground

← Back to Function reference