Function reference · Trigonometry

sin

Returns the sine of an angle in radians.

Exact values come out at multiples of π/6, π/4 and π/3; other angles stay as they are until you evaluate them.

sin(-x) simplifies to -sin(x).

Notation

sin(x)

Write it in an expression: nerdamer('sin(pi/6)'), or in the Playground.

nerdamer.sin

nerdamer.sin(x: ExpressionInput): Expression

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

Examples

A special angle.

sin(pi/6)
// → 1/2
Open in Playground

An exact irrational value.

sin(pi/4)
// → (1/2)*2^(1/2)
Open in Playground

Sine is odd.

sin(-x)
// → -sin(x)
Open in Playground

Not a special angle: stays exact.

sin(pi/5)
// → sin((1/5)*pi)
Open in Playground

← Back to Function reference