Function

nerdamer.solveEquations

src/index.ts:836
nerdamer.solveEquations(equations: Vector | ExpressionInput | Equation[], variables?: string[]): Vector

Solves a system of expressions or equations for an ordered set of variables. Expressions are interpreted as equal to zero. The solver first tries exact linear reduction, then a lexicographic Groebner basis with symbolic back substitution for polynomial systems, and finally bounded multivariate Newton-Raphson. Rational polynomial systems may have denominators cleared for symbolic work; candidates are checked against the original domain.

remarks

The nonlinear numerical fallback is heuristic and does not guarantee all roots. A returned outer Vector contains one Dictionary per solution. An empty system has one empty solution, while no discovered or inconsistent solution is represented by an empty Vector. Infinite nonlinear solution sets are not represented. Underdetermined systems that reach numerical fallback are rejected.

throws

UnexpectedInputError If an input cannot be normalized to an Expression or Equation.

throws

UnsupportedOperationError If a solution is not isolated or an underdetermined nonlinear system reaches numerical fallback.

Parameters

NameTypeDescription
equationsVector | ExpressionInput | Equation[]Vector or array of equations and zero-valued expressions.
variablesstring[]Optional variable order. When omitted, variables are collected from the normalized expressions.

Returns

Vector — A Vector of solution dictionaries keyed by variable name.