solve one or more equations using floating-point arithmetic - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Group Theory : Numbers : Numerical Functions : fsolve : fsolve

fsolve - solve one or more equations using floating-point arithmetic

Calling Sequence

fsolve( equations, variables, complex )

Parameters

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

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.

• 

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.

polynomial:=2x511x47x3+12x24x=0:

fsolvepolynomial

1.334383488,0.,5.929222024

(1)

Other Equations

  

For more complicated equations, the fsolve command computes one real solution.

polynomials:=3x4y2=17,x3y5xy22y=1:

fsolvepolynomials

x=2.118203038,y=0.5305528603

(2)

fsolvetansinx=1

0.9033391108

(3)

f:=sinx+yⅇxy=0:

g:=x2y=2:

fsolvef,g

x=6.017327250,y=34.20822723

(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.

fsolvelnv=v2

fsolvelnv=v2,v

(5)

fsolvelnv=v2,v,complex

0.61436324540.6810654878I

(6)

fsolvelnvv2,v,complex

0.61436324540.6810654878I

(7)

fsolvet→lntt2,complex

0.61436324540.6810654878I

(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

  

see the fsolve/details help page.

See Also

Digits, dsolve/numeric, Numeric Computation in Maple, pdsolve/numeric, RootFinding[Analytic], RootFinding[Isolate], solve


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam