Skip to content

No method matching Irrational{:log2π} #521

@maxmouchet

Description

@maxmouchet

This seems similar to #309.

On Julia v1.3, Zygote v0.4.7 and Distributions v0.22.4:

using Distributions, Zygote

f(x) = logpdf(Normal(), x)
f(0.0) # -0.9189385332046728
f'(0.0)
# MethodError: no method matching Irrational{:log2π}(::Int64)
# Closest candidates are:
#  Irrational{:log2π}(::T) where T<:Number at boot.jl:718
#  Irrational{:log2π}() where sym at irrationals.jl:18
#  Irrational{:log2π}(!Matched::Complex) where T<:Real at complex.jl:37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions