Skip to content

bernpoly complex limit  #472

@cbm755

Description

@cbm755

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions