fsolve
solve one or more equations using floating-point arithmetic
Calling Sequence
Parameters
Basic Information
Examples
Details
Compatibility
fsolve( equations, variables, complex )
equations
-
equation, set(equation), expression, set(expression), list(equation), procedure, list(procedure)
variables
(optional) name or set(name); unknowns for which to solve
complex
(optional) literal name; search for complex solutions
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.
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.
A Polynomial Equation in One Variable
For a univariate real polynomial equation, the fsolve command computes all real solutions.
polynomial≔2⁢x5−11⁢x4−7⁢x3+12⁢x2−4⁢x=0:
fsolve⁡polynomial
−1.334383488,0.,5.929222024
Other Equations
For more complicated equations, the fsolve command computes one real solution.
polynomials≔3⁢x4⁢y2=17,x3⁢y−5⁢x⁢y2−2⁢y=1:
fsolve⁡polynomials
x=2.118203038,y=0.5305528603
fsolve⁡tan⁡sin⁡x=1
0.9033391108
f≔sin⁡x+y−exp⁡x⁢y=0:
g≔x2−y=2:
fsolve⁡f,g
x=−6.017327250,y=34.20822723
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.
fsolve⁡ln⁡v=v2
fsolve⁡ln⁡v=v2,v
fsolve⁡ln⁡v=v2,v,complex
0.6143632454−0.6810654878⁢I
fsolve⁡ln⁡v−v2,v,complex
fsolve⁡t↦ln⁡t−t2,complex
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
see the fsolve/details help page.
The fsolve command was updated in Maple 2024.
See Also
Digits
dsolve/numeric
Numeric Computation in Maple
pdsolve/numeric
RootFinding[Analytic]
RootFinding[Isolate]
solve
Download Help Document