solve_nonlinear_system
Solve systems of nonlinear equations symbolically using SymPy. Input expression keys and variable names to generate LaTeX-formatted solutions across specified domains like complex or real numbers.
Instructions
Solves a system of nonlinear equations using SymPy's nonlinsolve.
Args:
expr_keys: The keys of the expressions (previously introduced) forming the system.
var_names: The names of the variables to solve for.
domain: The domain to solve in (Domain.COMPLEX, Domain.REAL, etc.). Defaults to Domain.COMPLEX.
Returns:
A LaTeX string representing the solution set. Returns an error message string if issues occur.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
domain | No | complex | |
expr_keys | Yes | ||
var_names | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"Domain": {
"enum": [
"complex",
"real",
"integers",
"naturals"
],
"title": "Domain",
"type": "string"
}
},
"properties": {
"domain": {
"$ref": "#/$defs/Domain",
"default": "complex"
},
"expr_keys": {
"items": {
"type": "string"
},
"title": "Expr Keys",
"type": "array"
},
"var_names": {
"items": {
"type": "string"
},
"title": "Var Names",
"type": "array"
}
},
"required": [
"expr_keys",
"var_names"
],
"title": "solve_nonlinear_systemArguments",
"type": "object"
}