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
julia> f(x) = sqrt(x)
f (generic function with 1 method)
julia> f(-1)
ERROR: DomainError with -1.0:
sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
Stacktrace:
[1] throw_complex_domainerror(f::Symbol, x::Float64)
@ Base.Math ./math.jl:33
[2] sqrt
@ ./math.jl:591 [inlined]
[3] sqrt
@ ./math.jl:1372 [inlined]
[4] f(x::Int64)
@ Main ./REPL[1]:1
[5] top-level scope
@ REPL[2]:1
julia> using ClearStacktrace
julia> f(-1)
ERROR: DomainError with -1.0:
sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
SYSTEM (REPL): showing an error caused an error
ERROR: UndefVarError: LAST_SHOWN_LINE_INFOS not defined
SYSTEM (REPL): caught exception of type UndefVarError while trying to handle a nested exception; giving up
The text was updated successfully, but these errors were encountered:
I have no intention of doing anything with this repo anymore, after the gist got merged into Julia. You're free to fork though if you're interested in an improved version
The text was updated successfully, but these errors were encountered: