diff --git a/inst/@sym/laplace.m b/inst/@sym/laplace.m index bd92c888..26c9efc1 100644 --- a/inst/@sym/laplace.m +++ b/inst/@sym/laplace.m @@ -1,5 +1,5 @@ %% Copyright (C) 2014-2016 Andrés Prieto -%% Copyright (C) 2015-2016, 2019 Colin Macdonald +%% Copyright (C) 2015-2016, 2019, 2024 Colin Macdonald %% %% This file is part of OctSymPy. %% @@ -214,3 +214,12 @@ %! % SymPy cannot evaluate? (Issue #170) %! syms s f(t) %! assert(logical( laplace(diff(f(t),t),t,s) == s*laplace(f(t),t,s)-f(0) )) + +%!test +%! % https://github.com/gnu-octave/symbolic/issues/1295 +%! % 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