8000 Update index.fsx · DiffSharp/DiffSharp@2ba66fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ba66fe

Browse files
authored
Update index.fsx
1 parent 922b916 commit 2ba66fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ dsharp.grad f (dsharp.tensor([1.8, 2.5]))
121121
Compute a nested derivative (checking for [perturbation confusion](https://doi.org/10.1007/s10990-008-9037-1)):
122122
*)
123123

124-
let x0 = dsharp.tensor(1)
125-
let y0 = dsharp.tensor(2)
124+
let x0 = dsharp.tensor(1.)
125+
let y0 = dsharp.tensor(2.)
126126
dsharp.diff (fun x -> x * dsharp.diff (fun y -> x * y) y0) x0
127127
(*** include-it ***)
128128

0 commit comments

Comments
 (0)
0