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
using Distributions
using ForwardDiff: Dual
pdf(Beta(Dual(2.), Dual(2.)), 1)
Error:
ERROR: MethodError: `convert` has no method matching convert(::Type{Float64}, ::ForwardDiff.Dual{0,Float64})
This may have arisen from a call to the constructor Float64(...),
since type constructors fall back to convert methods.
Closest candidates are:
call{T<:AbstractFloat}(::Type{T<:AbstractFloat}, ::Real, ::RoundingMode{T})
call{T}(::Type{T}, ::Any)
convert(::Type{Float64}, ::Int8)
...
in pdf at /Users/kai/.julia/v0.4/Distributions/src/univariates.jl:320