Skip to content

Commit

Permalink
no early termination; keep symengine#225
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Mar 3, 2025
1 parent 821db78 commit 627e5bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ diff(b1::SymbolicType, b2::BasicType) =
function diff(b1::SymbolicType, b2::SymbolicType, n::Integer=1)
n < 0 && throw(DomainError("n must be non-negative integer"))
n==0 && return b1
iszero(b1) && return b1
n==1 && return diff(b1, BasicType(b2))
n > 1 && return diff(diff(b1, BasicType(b2)), BasicType(b2), n-1)
end
Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ ex = sin(x*y)
@test diff(ex, x, 2, y, 3) == diff(ex, x,x,y,y,y)
@test diff(ex, x, n, y, 3) == diff(ex, x,x,y,y,y)
@test diff(ex, x, 2, y, x) == diff(ex, x,x,x,y)
(@allocated diff(x^10, x,12)) , (@allocated diff(x^10, x, 120))
@test series(sin(x), x, 0, 2) == x
@test series(sin(x), x, 0, 3) == x - x^3/6

Expand Down

0 comments on commit 627e5bb

Please sign in to comment.