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

isapprox throws an error #51

Open
dlfivefifty opened this issue Mar 13, 2017 · 0 comments
Open

isapprox throws an error #51

dlfivefifty opened this issue Mar 13, 2017 · 0 comments

Comments

@dlfivefifty
Copy link
Collaborator

I think real(::Type{Dual{T}}) needs to be overriden:

julia> dual(1.0,1.0)  dual(1.0,1.0)
ERROR: MethodError: no method matching real(::Type{DualNumbers.Dual{Float64}})
Closest candidates are:
  real(::Complex{T<:Real}) at complex.jl:36
  real(::Real) at complex.jl:38
  real{T<:Real}(::Type{T<:Real}) at complex.jl:42
  ...
 in isapprox(::DualNumbers.Dual{Float64}, ::DualNumbers.Dual{Float64}) at ./floatfuncs.jl:251
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

1 participant