Question: How to use fsolve to get all roots in a range

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

Please Wait...