Skip to content

Commit 1d200bc

Browse files
authored
Merge pull request #563 from rkiman/user-defined-model
Fixed error in derivative in Full custom model section
2 parents cfac429 + 8cdd30f commit 1d200bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/User-Defined-Model/User-Defined-Model.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,9 @@
769769
" \n",
770770
" @staticmethod\n",
771771
" def fit_deriv(x, a, b, c, d):\n",
772-
" d_a = np.sin(b*x+c)+d\n",
772+
" d_a = np.sin(b*x+c)\n",
773773
" d_b = a*np.cos(b*x+c)*x\n",
774-
" d_c = a*np.sin(b*x+c)\n",
774+
" d_c = a*np.cos(b*x+c)\n",
775775
" d_d = np.ones(x.shape)\n",
776776
" return [d_a, d_b, d_c, d_d]"
777777
]

0 commit comments

Comments
 (0)