Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realmin and realmax not defined #306

Closed
mohamed82008 opened this issue Feb 24, 2018 · 1 comment
Closed

realmin and realmax not defined #306

mohamed82008 opened this issue Feb 24, 2018 · 1 comment

Comments

@mohamed82008
Copy link
Member

julia> realmax(typeof(ForwardDiff.Dual{Float64}(1.)))
ERROR: MethodError: no method matching realmax(::Type{ForwardDiff.Dual{Float64,Float64,0}})
Closest candidates are:
  realmax() at float.jl:709
  realmax(::Type{Float16}) at float.jl:703
  realmax(::Type{Float32}) at float.jl:704
  ...

julia> realmin(typeof(ForwardDiff.Dual{Float64}(1.)))
ERROR: MethodError: no method matching realmin(::Type{ForwardDiff.Dual{Float64,Float64,0}})
Closest candidates are:
  realmin() at float.jl:708
  realmin(::Type{Float16}) at float.jl:700
  realmin(::Type{Float32}) at float.jl:701
  ...

julia> versioninfo()
Julia Version 0.6.2
Commit d386e40c17* (2017-12-13 18:08 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Prescott)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

julia> Pkg.installed("ForwardDiff")
v"0.7.2"
@devmotion
Copy link
Member

realmax and realmin were renamed to floatmax and floatmin in Julia 0.7.0 (JuliaLang/julia#28302). Support for them was added in #525:

julia> using ForwardDiff

julia> floatmax(typeof(ForwardDiff.Dual{Float64}(1.)))
Dual{Float64}(1.7976931348623157e308)

julia> floatmin(typeof(ForwardDiff.Dual{Float64}(1.)))
Dual{Float64}(2.2250738585072014e-308)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants