gradients(dfdx, [x, y]) instead of gradients(dfdx, [3., 4.]), fixes #399
parent
d6c2ba1b8f
commit
e2edfb274b
|
@ -235,7 +235,7 @@
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def d2f(x, y):\n",
|
"def d2f(x, y):\n",
|
||||||
" return [gradients(dfdx, [3., 4.]), gradients(dfdy, [3., 4.])]"
|
" return [gradients(dfdx, [x, y]), gradients(dfdy, [x, y])]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue