The magnitude of this evaluation is completely wrong:
>>> bernpoly(4, complex(inf, 1e-50))
mpc(real='9.9999999999999998e-201', imag='0.0')
compared to:
>>> bernpoly(4, complex(1e5, 1e-5))
mpc(real='9.9998000010000007e+19', imag='39999400002.0')
>>> bernpoly(4, complex(1e50, 1e-50))
mpc(real='1.0000000000000003e+200', imag='4.0000000000000008e+100')
(probably related to #471).
Other tests:
>>> bernpoly(4, complex(inf, 2))
mpc(real='16.0', imag='0.0')
>>> bernpoly(4, complex(inf, 3))
mpc(real='81.0', imag='0.0')
(again the values should inf or nan, or at least big)
The magnitude of this evaluation is completely wrong:
compared to:
(probably related to #471).
Other tests:
(again the values should inf or nan, or at least big)