expressions involving floating-point numbers
equations (as for solve), but with floating-point values
variables (as for solve)
The solve function with floating-point numbers works by converting the floating-point numbers to approximate rationals, calling solve with these converted arguments, and converting the results back to floating-point numbers using evalf.
This can be convenient for solving equations with a combination of floating-point numbers and parameters (since fsolve will not solve equations with unassigned parameters). In most cases, it is a better idea to convert the input into exact values manually since this will generally give more meaningful answers.
eq ≔ x2−3⁢x+0.01:
This is equivalent to the following:
eqe ≔ convert⁡eq,'rational','exact'
eqe ≔ x2−3⁢x+1100
sol ≔ solve⁡eqe,x
sol ≔ 32+25⁢14,32−25⁢14
The variable x is a parameter in the following example
Error, (in fsolve) x is in the equation, and is not solved for
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.