Question: complex root finding


 In the following root finding code, the wn[1] is calculated as [] although it is within the specified range. would you please tell me why?

``

restart

`ωn` := Array(0 .. 30); j := 7; for i to 2 do `ωn`[i] := [RootFinding:-Analytic(eval(xx*tan(xx)+(.5*ln(0.1e-4)*(1/122)-I*i*Pi*(1/122))), xx = (j-1)*Pi+0*I .. j*Pi+I, digits = 10)] end do

Array(%id = 427683488)

 

7

 

[]

 

[18.85205919+0.2731504612e-2*I]

(1)

``


Download complex_root.mw

Please Wait...