ApproxFun.jl icon indicating copy to clipboard operation
ApproxFun.jl copied to clipboard

high precision example in readme throws error

Open AshtonSBradley opened this issue 5 years ago • 2 comments

julia> setprecision(1000)
1000

julia> d = BigFloat(0)..BigFloat(1)
0.0..1.0

julia> D = Derivative(d)
ConcreteDerivative : Chebyshev(0.0..1.0) → Ultraspherical(1,0.0..1.0)
Error showing value of type ApproxFun.ConcreteDerivative{Chebyshev{Interval{:closed,:closed,BigFloat},BigFloat},Int64,BigFloat}:
ERROR: StackOverflowError:
Stacktrace:
 [1] _range(::BigFloat, ::BigFloat, ::Nothing, ::Int64) at ./range.jl:86 (repeats 80000 times)

on

[28f2ccd6] ApproxFun v0.10.0

AshtonSBradley avatar Nov 06 '18 06:11 AshtonSBradley

This is a known bug in Base: https://github.com/JuliaLang/julia/issues/25853#issuecomment-413480727

dlfivefifty avatar Nov 06 '18 06:11 dlfivefifty

You can work around it by overriding range(::BigFloat, ::BigFloat, ::Nothing, ::Int64)

dlfivefifty avatar Nov 06 '18 06:11 dlfivefifty

Closing, as this is fixed now on Julia v1.8

jishnub avatar Sep 14 '22 07:09 jishnub