Back to functions

sin


sine

This function will return some known values for multiples of pi, pi/2, pi/3, etc. For numeric values it returns the javascript value for pi. In all other cases it returns a symbolic function. Expects radians.

Usage: nerdamer("sin(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

Returns

Expression

EXAMPLES:
var r = nerdamer('sin(pi)').evaluate().toString();
console.log(r);
var t = nerdamer('sin(x)').evaluate().toString()
console.log(t);
var u = nerdamer('sin(pi/4)').evaluate().toString()
console.log(u);
var v = nerdamer('sin(pi)').toString()
console.log(v);
OUTPUT:
Back to functions