Back to functions

gcd


Greatest Common Divisor

Gets the GCD of 2 polynomials

Usage: nerdamer("gcd(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('gcd(x^2+2*x+1, x^2+6*x+5)');
console.log(x.toString())
var y = nerdamer('gcd(b*z+a*z+b^2+a*b, a+b)');
console.log(y.toString());
OUTPUT:
Back to functions