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
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:36real(::Real) at complex.jl:38real{T<:Real}(::Type{T<:Real}) at complex.jl:42...inisapprox(::DualNumbers.Dual{Float64}, ::DualNumbers.Dual{Float64}) at ./floatfuncs.jl:251
The text was updated successfully, but these errors were encountered:
I think
real(::Type{Dual{T}})
needs to be overriden:The text was updated successfully, but these errors were encountered: