Skip to content

evalpoly(x,()) gives unhelpful error. #56699

Open
@LilithHafner

Description

evalpoly(x, ()) should either return zero(x) or give a helpful error message. Currently it

julia> evalpoly(1, ())
ERROR: BoundsError: attempt to access Tuple{} at index [0]
Stacktrace:
 [1] getindex(t::Tuple, i::Int64)
   @ Base ./tuple.jl:31
 [2] macro expansion
   @ ./math.jl:95 [inlined]
 [3] evalpoly(x::Int64, p::Tuple{})
   @ Base.Math ./math.jl:94
 [4] top-level scope
   @ REPL[13]:1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviormathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions