Skip to content

Commit f86dd7e

Browse files
authored
Fix more doctests
1 parent 5c9edd3 commit f86dd7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rules.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ unary input, unary output scalar function:
1919
julia> dself = NoTangent();
2020
2121
julia> x = rand()
22-
0.4056994708920292
22+
0.8236475079774124
2323
2424
julia> sinx, Δsinx = frule((dself, 1), sin, x)
25-
(0.3946615493032566, 0.918826567694662)
25+
(0.7336293678134624, 0.6795498147167869)
2626
2727
julia> sinx == sin(x)
2828
true
@@ -51,7 +51,7 @@ that return a single output that is iterable, like a `Tuple`.
5151
So this is actually a [`Tangent`](@ref):
5252
```jldoctest frule
5353
julia> Δsincosx
54-
Tangent{Tuple{Float64, Float64}}(0.918826567694662, -0.3946615493032566)
54+
Tangent{Tuple{Float64, Float64}}(0.6795498147167869, -0.7336293678134624)
5555
```
5656
5757
The optional [`RuleConfig`](@ref) option allows specifying frules only for AD systems that

0 commit comments

Comments
 (0)