Skip to content

Commit

Permalink
Laplace test on SymPy 1.12 only
Browse files Browse the repository at this point in the history
It bases on early SymPy too, just not 1.10 and 1.11
  • Loading branch information
cbm755 committed May 14, 2024
1 parent f9a3fe7 commit ec9c2a8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions inst/@sym/laplace.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@

%!test
%! % https://github.com/gnu-octave/symbolic/issues/1295
%! syms t s
%! L = simplify (laplace (3*t*sin (4*t)));
%! assert (isAlways (L == 24*s / (s^2 + 16)^2))
%! % fails on SymPy 1.10.* and 1.11.*
%! if (pycall_sympy__ ('return Version(spver) >= Version("1.12")'))
%! syms t s
%! L = simplify (laplace (3*t*sin (4*t)));
%! assert (isAlways (L == 24*s / (s^2 + 16)^2))
%! end

0 comments on commit ec9c2a8

Please sign in to comment.