|
Calling Sequence
|
|
fsolve( equations, variables, complex )
|
|
Parameters
|
|
equations
|
-
|
equation, set(equation), expression, set(expression), list(equation), procedure, list(procedure), Vector(equation)
|
variables
|
-
|
(optional) name, set(name), list(name), Vector(name); unknowns for which to solve
|
complex
|
-
|
(optional) literal name; search for complex solutions
|
|
|
|
|
Basic Information
|
|
|
Description
|
|
•
|
The fsolve command numerically computes the zeroes of one or more equations, expressions or procedures.
|
|
|
Output
|
|
•
|
The solutions to a single equation are returned as an expression sequence.
|
•
|
The solutions to a set or list of equations are returned as sets of equation sequences, if the variables are not specified. If the variables are specified either as a set, list, or Vector, then the solutions are returned in the same form. If the variables are specified as a Vector then the solutions contain only the ordered numeric values, rather than equations for each variable name.
|
•
|
For a single polynomial equation of one variable with real coefficients, by default the fsolve command computes all real (non-complex) roots. It may not return all roots for exceptionally ill-conditioned polynomials.
|
•
|
For a single polynomial equation of one variable with some (non-real) complex coefficients, the fsolve command computes all real and complex roots. It may not return all roots for exceptionally ill-conditioned polynomials.
|
•
|
For a general equation or system of equations, the fsolve command computes a single real root.
|
|
|
|
Examples
|
|
|
A Polynomial Equation in One Variable
|
|
|
For a univariate real polynomial equation, the fsolve command computes all real solutions.
|
>
|
|
| (1) |
|
|
Other Equations
|
|
|
For more complicated equations, the fsolve command computes one real solution.
|
>
|
|
| (2) |
>
|
|
| (4) |
|
If an equation has no real solutions or you are interested in complex solutions then you can search for a complex solution using the complex option. For equations and expressions, the complex option must be preceded by the variables option.
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
|
|
|
Details
|
|
|
For detailed information including:
|
•
|
Complete description of all parameters
|
•
|
Complete description of functionality
|
•
|
Specifying ranges or initial points
|
•
|
Shortcuts for specifying equations and unknowns
|
•
|
Specifying you want to find complex roots
|
•
|
Limiting the number of solutions returned for a polynomial equation of one variable
|
•
|
Specifying the maximum number of solutions for an equation of one variable
|
•
|
Specifying the method for an equation of one variable
|
•
|
Specifying the maximal working precision set by fsolve, or the absolute forward error or norm of the iteration step increment as acceptance criteria
|
|
|
Compatibility
|
|
•
|
The fsolve command was updated in Maple 2024.
|
|
|
|