Question: complex root finiding with functional range

In my complex root finding problem it is essential to obtain complex roots in each period of the function. to do this i have write the following code with functional periods but it doesnt work. would you please tell me why? and how can i correct the code?

restart; B := [`$`(1 .. 10)]; for j to 3 do for i to 10 do B[i] := [RootFinding:-Analytic(eval(x*tan(x)-I*i+10), x = (j-1)*Pi+0*I .. j*Pi+10*I)] end do end do; convert(B, array)

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

 

Error, (in index/fill) a list with 2 entries cannot be used to initialize the range 1 .. 1

 

``

``

Download root.mw

Please Wait...