We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d21042 commit 45c1d1bCopy full SHA for 45c1d1b
src/differentiate.jl
@@ -30,7 +30,7 @@ function differentiate(::SymbolParameter{:^}, args, wrt)
30
yp = differentiate(y, wrt)
31
if xp == 0 && yp == 0
32
return 0
33
- elseif xp != 0 && yp == 0
+ elseif yp == 0
34
return :( $y * $xp * ($x ^ ($y - 1)) )
35
else
36
return :( $x ^ $y * ($xp * $y / $x + $yp * log($x)) )
0 commit comments