sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.46k stars 482 forks source link

Giac crashes #39016

Closed user202729 closed 9 hours ago

user202729 commented 22 hours ago

Steps To Reproduce

sage: var("s t")
(s, t)
sage: inverse_laplace( s+exp(-s)   , s, t, algorithm='giac')
Giac crashed -- automatically restarting.
sage0*dirac_delta(sage2)

Expected Behavior

No crash and result is correct

Actual Behavior

-

Additional Information

Comes from a doctest on my machine

**********************************************************************
File "src/sage/calculus/calculus.py", line 1906, in sage.calculus.calculus.inverse_laplace
Failed example:
    inverse_laplace((2*s^2*exp(-2*s) - exp(-s))/(s^3+1), s, t,
                    algorithm='giac')
Expected:
    -1/3*(sqrt(3)*e^(1/2*t - 1/2)*sin(1/2*sqrt(3)*(t - 1))
     - cos(1/2*sqrt(3)*(t - 1))*e^(1/2*t - 1/2) + e^(-t + 1))*heaviside(t - 1)
     + 2/3*(2*cos(1/2*sqrt(3)*(t - 2))*e^(1/2*t - 1) + e^(-t + 2))*heaviside(t - 2)
Got:
    Giac crashed -- automatically restarting.
    sage34*dirac_delta(sage36)
**********************************************************************

Environment

Checklist

user202729 commented 9 hours ago

Can't reproduce anymore, but originally Giac was built with make. Now I use conda+meson.