Closed Ale-AR closed 5 months ago
I cannot reproduce any of these, at least on SymPy v1.12. Perhaps its a bug in an earlier SymPy?
>> syms t s
Symbolic pkg v3.1.1+: Python communication link active, SymPy v1.12.
>> simplify(laplace(3*t*sin(4*t)))
ans = (sym)
24⋅s
────────────────
4 2
s + 32⋅s + 256
>> simplify(laplace(5*t*sin(4*t)))
ans = (sym)
40⋅s
────────────────
4 2
s + 32⋅s + 256
I'll see if I can get these running on our CI tests, which will test over a wider range of versions... but I suspect you'll need to upgrade SymPy, Octave, and/or Symbolic (most likely the first)
I see you gave your Octave and Symbolic versions so most likely its SymPy that is too old...
Seems it was broken in SymPy 1.10 and 1.11. I figure you were using one of those.
Tests in place so it shouldn't happen again! Thanks for the note. "Fixed" in #1298.
You are correct, Octave seems to use Sympy version 1.10.1:
>> pkg load symbolic
>> syms t s
Symbolic pkg v3.1.1: Python communication link active, SymPy v1.10.1.
However, I have version 1.12 installed on my system:
$ pip show sympy
Name: sympy
Version: 1.12
I guess the problem is that I use Flatpak's Octave.