You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Package symbolic v.3.1.1 in GNU Octave Version: 9.1.0
pkg load symbolic
syms t s
laplace(3*t*sin(4*t))
##
##ans = (sym)
##
## 8⋅s
## ────────────────
## 4 2
## s + 32⋅s + 256
# ERROR - The answer is for laplace(t*sin(4*t))
# (24·s) was expected in the numerator.
# Now let's edit it and recalculate:
laplace(5*t*sin(4*t))
##
##ans = (sym)
##
## 8⋅s
## ────────────────
## 4 2
## s + 32⋅s + 256
# ERROR - Same previous answer is repeated.
# (40·s) was expected in the numerator.
# Same behavior is observed in t*cos():
laplace(5*t*cos(2*t))
##
##ans = (sym)
##
## 2
## s - 4
## ──────────────
## 4 2
## s + 8⋅s + 16
# ERROR - The answer is for laplace(t*cos(2*t))
# (5·s²-20) was expected in the numerator.
laplace(2*t*cos(2*t))
##
##ans = (sym)
##
## 2
## s - 4
## ──────────────
## 4 2
## s + 8⋅s + 16
# ERROR - Same previous answer is repeated.
# (2·s²-8) was expected in the numerator.`
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: