Back to functions

Expression.numerator


numerator

Get a list of the numerator of a polynomial

Usage: nerdamer(expression).numerator()


Parameters

none This function takes no arguments.

Returns

Expression

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