Back to functions

sqrt


square root

Calculates the square root of a number

Usage: nerdamer("sqrt(x)")


Parameters

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

Returns

Expression

EXAMPLES:
var x = nerdamer('sqrt(-1)');
console.log(x.toString());
x = nerdamer('sqrt(2)');
console.log(x.toString());
x = nerdamer('sqrt(3/2)');
console.log(x.toString());
x = nerdamer('sqrt(x^2/5)');
console.log(x.toString());
OUTPUT:
Back to functions