12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

54 • Chapter 3: Finding Solutionspoly := 3 x 4 − 16 x 3 − 3 x 2 + 13 x + 16> fsolve({poly},{x});{x = 1.324717957}, {x = 5.333333333}To look for more than one root of a general equation, use the avoidoption.> fsolve({sin(x)=0}, {x});{x = 0.}> fsolve({sin(x)=0}, {x}, avoid={x=0});{x = −3.141592654}To find a specified number of roots in a polynomial, use the maxsolsoption.> fsolve({poly}, {x}, maxsols=1);{x = 1.324717957}By using the complex option, Maple searches for complex roots inaddition to real roots.> fsolve({poly}, {x}, complex);{x = −0.6623589786 − 0.5622795121 I},{x = −0.6623589786 + 0.5622795121 I},{x = 1.324717957}, {x = 5.333333333}You can also specify a range in which to look for a root.> fsolve({cos(x)=0}, {x}, Pi..2*Pi);{x = 4.712388980}In some cases, fsolve may fail to find a root even if one exists. Inthese cases, specifying a range should help. To increase the accuracy of the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!