How to use fsolve to get all roots in a range

June 03 2011 by Subhra 0
false

0


Dear Maple users,

I am trying to solve a non linear equation for complex and real roots and I am using following command:

answer:=fsolve(func,x,{x=-100-100*I..100+100*I},complex); % here 'func' is a nonlinear function

to search for all possible roots in the given range. But fsolve does not return all possible roots. Mostly it returns one. But I am sure the function has more roots in the specified range

But, if my "func" is simple polynomial (e.g. func= x^5-3x^2+3x-1),then fsolve returns all possible roots in the given range.

 

Kindly help me on this..

thanks

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account