Skip to content

Commit

Permalink
added using Calculus to get tests to pass
Browse files Browse the repository at this point in the history
- this must have been removed elsewhere?
  • Loading branch information
jmxpearson committed Jun 16, 2016
1 parent 9ca19ec commit 3eee744
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/continuous.jl
Expand Up @@ -77,6 +77,7 @@ end

# Test for non-Float64 input
using ForwardDiff
using Calculus
@test string(logpdf(Normal(0,1),big(1))) == "-1.418938533204672741780329736405617639861397473637783412817151540482765695927251"
@test_approx_eq derivative(t -> logpdf(Normal(1.0, 0.15), t), 2.5) -66.66666666666667
@test derivative(t -> pdf(Normal(t, 1.0), 0.0), 0.0) == 0.0

0 comments on commit 3eee744

Please sign in to comment.