On Fri, 20 Dec 2019, Jori Mantysalo wrote: > On Fri, 20 Dec 2019, Mattia Villani wrote: > >> Here is my script: > > In my test the code seems to really eat much memory, so maybe it's not about > changing allocation between heap and stack. Maybe you just run out of memory.
I left the code to run to a computer with 64 GB RAM when leaving on vacation. However: File "/home/jm58660/sage/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py", line 986, in sr_limit return max_to_sr(maxima_eval(([max_limit], L))) File "sage/libs/ecl.pyx", line 805, in sage.libs.ecl.EclObject.__call__ (build/cythonized/sage/libs/ecl.c:7794) File "sage/libs/ecl.pyx", line 377, in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:5456) RuntimeError: ECL says: Maxima asks: Is (_SAGE_VAR_r^5-20*_SAGE_VAR_r^4+36*_SAGE_VAR_r^3+20*_SAGE_VAR_r^2+720) *((_SAGE_VAR_r^15+72*_SAGE_VAR_r^13+20*_SAGE_VAR_r^12+1296*_SAGE_VAR_r^11 +1440*_SAGE_VAR_r^10+25920*_SAGE_VAR_r^8) *%e^(40/_SAGE_VAR_r^3) +((-4*_SAGE_VAR_r^15)-288*_SAGE_VAR_r^13-80*_SAGE_VAR_r^12 -5184*_SAGE_VAR_r^11-5760*_SAGE_VAR_r^10 -103680*_SAGE_VAR_r^8) *%e^(20/_SAGE_VAR_r^3)+4*_SAGE_VAR_r^15+288*_SAGE_VAR_r^13 +80*_SAGE_VAR_r^12+5184*_SAGE_VAR_r^11+5760*_SAGE_VAR_r^10 +103680*_SAGE_VAR_r^8) positive, negative or zero? During handling of the above exception, another exception occurred: Traceback (most recent call last): File "koe.sage.py", line 39, in <module> print(limit(limit(kr.expr().subs(m=_sage_const_10 ,L=_sage_const_1 ,A=_sage_const_6 ,alpha=_sage_const_2 ,beta=_sage_const_4 ),th=_sage_const_0 ),r=_sage_const_0 )) File "/home/jm58660/sage/local/lib/python3.7/site-packages/sage/calculus/calculus.py", line 1368, in limit l = maxima.sr_limit(ex, v, a) File "/home/jm58660/sage/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py", line 990, in sr_limit self._missing_assumption(s) File "/home/jm58660/sage/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py", line 1035, in _missing_assumption raise ValueError(outstr) ValueError: Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume((r^5-20*r^4+36*r^3+20*r^2+720) >0)', see `assume?` for more details) Is (r^5-20*r^4+36*r^3+20*r^2+720) *((r^15+72*r^13+20*r^12+1296*r^11 +1440*r^10+25920*r^8) *%e^(40/r^3) +((-4*r^15)-288*r^13-80*r^12 -5184*r^11-5760*r^10 -103680*r^8) *%e^(20/r^3)+4*r^15+288*r^13 +80*r^12+5184*r^11+5760*r^10 +103680*r^8) positive, negative or zero? -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/alpine.DEB.2.21.9999.2001070752370.118413%40shell.sis.uta.fi.