Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into strongzerosandnonans
  • Loading branch information
jwscook authored Mar 19, 2021
commit 31b063a6873bf934a54ba8b8cf6b08f716d5d684
1 change: 0 additions & 1 deletion src/dual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ for T ∈ (:Integer, :Rational, :Number)
@eval Base.:^(z::Dual, n::$T) = pow(z, n)
end


NaNMath.pow(z::Dual, n::Number) = Dual(NaNMath.pow(value(z),n), epsilon(z)*n*NaNMath.pow(value(z),n-1))
NaNMath.pow(z::Number, w::Dual) = Dual(NaNMath.pow(z,value(w)), epsilon(w)*NaNMath.pow(z,value(w))*log(z))

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.