Back to functions

Solve.solveEquations


solveEquations

Solves a system of linear equations


Usage: nerdamer.solveEquations(expression_or_array, variables)


Parameters

Expression expressions_or_array An array of expression
String variables The variables to solve for.

EXAMPLES:
var sol = nerdamer.solveEquations(['x+y=1', '2*x=6', '4*z+y=6']);
console.log(sol.toString());
sol = nerdamer.solveEquations('cos(x)+cos(3*x)=1','x');
console.log(sol.toString());
sol = nerdamer.solveEquations('x^2+8+y=x+6','x');
console.log(sol.toString());
OUTPUT:
Back to functions