Back to functions

cot


cotangent

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.


Usage: nerdamer("cot(x)")


Parameters

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

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