You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Horner's scheme as it is implemented now gives wrong results.
Observed Behaviour
julia>using Polynomials
julia> p1 =Poly([Inf, Inf])
Poly(Inf+Inf⋅x)
julia>p1(Inf)
NaN
julia>p1(-Inf)
NaN
julia>p1(0)
NaN
julia> p2 =Poly([0, Inf])
Poly(Inf⋅x)
julia>p2(-Inf)
NaN
Desired Behaviour
julia>using Polynomials
julia> p1 =Poly([Inf, Inf])
Poly(Inf+Inf⋅x)
julia>p1(Inf)
Inf
julia>p1(-Inf)
NaN
julia>p1(0)
NaN
julia> p2 =Poly([0, Inf])
Poly(Inf⋅x)
julia>p2(-Inf)
-Inf
The text was updated successfully, but these errors were encountered:
Description
Horner's scheme as it is implemented now gives wrong results.
Observed Behaviour
Desired Behaviour
The text was updated successfully, but these errors were encountered: