Skip to contents

nonlinsolve(system, ...) solves a system of equations for the given symbols and returns a FiniteSet of Tuples, as SymPy's nonlinsolve(): polynomial systems go through a Groebner basis (positive-dimensional ones leave free unknowns as parameters), other equations are solved by substitution(), with complex and periodic (ImageSet) solutions, and a ConditionSet when nothing can be solved.

Usage

nonlinsolve(system, ...)

Arguments

system

A list of equations or expressions.

...

The symbols, or one list of them.

Value

A set of tuples, or a ConditionSet.

Examples

x <- Symbol("x"); y <- Symbol("y")
nonlinsolve(list(x^2 + y^2 - 1, x - y), list(x, y))
#> {(-sqrt(2)/2, -sqrt(2)/2), (sqrt(2)/2, sqrt(2)/2)}
nonlinsolve(list(x*y - 1, x - 2), list(x, y))
#> {(2, 1/2)}