Back to functions

realpart


realpart part

Returns the realpart of a complex number.

Usage: nerdamer("realpart(z)")


Parameters

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

Returns

Expression

EXAMPLES:
var r = nerdamer('realpart(b*x+x*c*i)');
console.log(r.toString());
var t = nerdamer('realpart(5+i)')
console.log(t.toString());
OUTPUT:
Back to functions