Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined

Using 8.3.beta6 on Linux Manjaro

I do not know if this is known or not. Problem with integrate

sage: var('x')
sage: integrate((cos(x) + 2*sin(x) + 1)/(cos(x)^2 - 2*cos(x)*sin(x) + 2*sin(x) + 3),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-f1dceacbaccd> in <module>()
----> 1 integrate((cos(x) + Integer(2)*sin(x) + Integer(1))/(cos(x)**Integer(2) - Integer(2)*cos(x)*sin(x) + Integer(2)*sin(x) + Integer(3)),x)

/usr/lib/python2.7/site-packages/sage/misc/functional.py in integral(x, *args, **kwds)
    751     """
    752     if hasattr(x, 'integral'):
--> 753         return x.integral(*args, **kwds)
    754     else:
    755         from sage.symbolic.ring import SR

/usr/lib/python2.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:69762)()
  12345                     R = ring.SR
  12346             return R(integral(f, v, a, b, **kwds))
> 12347         return integral(self, *args, **kwds)
  12348 
  12349     integrate = integral

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in integrate(expression, v, a, b, algorithm, hold)
    816         return integrator(expression, v, a, b)
    817     if a is None:
--> 818         return indefinite_integral(expression, v, hold=hold)
    819     else:
    820         return definite_integral(expression, v, a, b, hold=hold)

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.BuiltinFunction.__call__ (build/cythonized/sage/symbolic/function.cpp:11922)()
    996             res = self._evalf_try_(*args)
    997             if res is None:
--> 998                 res = super(BuiltinFunction, self).__call__(
    999                         *args, coerce=coerce, hold=hold)
   1000 

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.Function.__call__ (build/cythonized/sage/symbolic/function.cpp:6949)()
    490                     (<Expression>args[0])._gobj, hold)
    491         elif self._nargs == 2:
--> 492             res = g_function_eval2(self._serial, (<Expression>args[0])._gobj,
    493                     (<Expression>args[1])._gobj, hold)
    494         elif self._nargs == 3:

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in _eval_(self, f, x)
     88         for integrator in self.integrators:
     89             try:
---> 90                 return integrator(f, x)
     91             except NotImplementedError:
     92                 pass

/usr/lib/python2.7/site-packages/sage/symbolic/integration/external.py in maxima_integrator(expression, v, a, b)
     30         expression = SR(expression)
     31     if a is None:
---> 32         result = maxima.sr_integral(expression,v)
     33     else:
     34         result = maxima.sr_integral(expression, v, a, b)

/usr/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py in sr_integral(self, *args)
    803         """
    804         try:
--> 805             return max_to_sr(maxima_eval(([max_integrate],[sr_to_max(SR(a)) for a in args])))
    806         except RuntimeError as error:
    807             s = str(error)

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.EclObject.__call__ (build/cythonized/sage/libs/ecl.c:8639)()
    804         """
    805         lispargs = EclObject(list(args))
--> 806         return ecl_wrap(ecl_safe_apply(self.obj,(<EclObject>lispargs).obj))
    807 
    808     def __richcmp__(left, right, int op):

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:6294)()
    376     if ecl_nvalues > 1:
    377         s = si_coerce_to_base_string(ecl_values(1))
--> 378         raise RuntimeError("ECL says: {}".format(
    379             char_to_str(ecl_base_string_pointer_safe(s))))
    380     else:

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined.

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined

Using 8.3.beta6 on Linux Manjaro

I do not know if Is this is a known or not. issue? Problem with integrateintegrate.

sage: var('x')
sage: integrate((cos(x) + 2*sin(x) + 1)/(cos(x)^2 - 2*cos(x)*sin(x) + 2*sin(x) + 3),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-f1dceacbaccd> in <module>()
----> 1 integrate((cos(x) + Integer(2)*sin(x) + Integer(1))/(cos(x)**Integer(2) - Integer(2)*cos(x)*sin(x) + Integer(2)*sin(x) + Integer(3)),x)

/usr/lib/python2.7/site-packages/sage/misc/functional.py in integral(x, *args, **kwds)
    751     """
    752     if hasattr(x, 'integral'):
--> 753         return x.integral(*args, **kwds)
    754     else:
    755         from sage.symbolic.ring import SR

/usr/lib/python2.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:69762)()
  12345                     R = ring.SR
  12346             return R(integral(f, v, a, b, **kwds))
> 12347         return integral(self, *args, **kwds)
  12348 
  12349     integrate = integral

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in integrate(expression, v, a, b, algorithm, hold)
    816         return integrator(expression, v, a, b)
    817     if a is None:
--> 818         return indefinite_integral(expression, v, hold=hold)
    819     else:
    820         return definite_integral(expression, v, a, b, hold=hold)

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.BuiltinFunction.__call__ (build/cythonized/sage/symbolic/function.cpp:11922)()
    996             res = self._evalf_try_(*args)
    997             if res is None:
--> 998                 res = super(BuiltinFunction, self).__call__(
    999                         *args, coerce=coerce, hold=hold)
   1000 

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.Function.__call__ (build/cythonized/sage/symbolic/function.cpp:6949)()
    490                     (<Expression>args[0])._gobj, hold)
    491         elif self._nargs == 2:
--> 492             res = g_function_eval2(self._serial, (<Expression>args[0])._gobj,
    493                     (<Expression>args[1])._gobj, hold)
    494         elif self._nargs == 3:

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in _eval_(self, f, x)
     88         for integrator in self.integrators:
     89             try:
---> 90                 return integrator(f, x)
     91             except NotImplementedError:
     92                 pass

/usr/lib/python2.7/site-packages/sage/symbolic/integration/external.py in maxima_integrator(expression, v, a, b)
     30         expression = SR(expression)
     31     if a is None:
---> 32         result = maxima.sr_integral(expression,v)
     33     else:
     34         result = maxima.sr_integral(expression, v, a, b)

/usr/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py in sr_integral(self, *args)
    803         """
    804         try:
--> 805             return max_to_sr(maxima_eval(([max_integrate],[sr_to_max(SR(a)) for a in args])))
    806         except RuntimeError as error:
    807             s = str(error)

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.EclObject.__call__ (build/cythonized/sage/libs/ecl.c:8639)()
    804         """
    805         lispargs = EclObject(list(args))
--> 806         return ecl_wrap(ecl_safe_apply(self.obj,(<EclObject>lispargs).obj))
    807 
    808     def __richcmp__(left, right, int op):

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:6294)()
    376     if ecl_nvalues > 1:
    377         s = si_coerce_to_base_string(ecl_values(1))
--> 378         raise RuntimeError("ECL says: {}".format(
    379             char_to_str(ecl_base_string_pointer_safe(s))))
    380     else:

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined.

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined

Using 8.3.beta6 on Linux Manjaro

Is this a known issue? Problem with integrate.

sage: var('x')
sage: integrate((cos(x) + 2*sin(x) + 1)/(cos(x)^2 - 2*cos(x)*sin(x) + 2*sin(x) + 3),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-f1dceacbaccd> in <module>()
----> 1 integrate((cos(x) + Integer(2)*sin(x) + Integer(1))/(cos(x)**Integer(2) - Integer(2)*cos(x)*sin(x) + Integer(2)*sin(x) + Integer(3)),x)

/usr/lib/python2.7/site-packages/sage/misc/functional.py in integral(x, *args, **kwds)
    751     """
    752     if hasattr(x, 'integral'):
--> 753         return x.integral(*args, **kwds)
    754     else:
    755         from sage.symbolic.ring import SR

/usr/lib/python2.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:69762)()
  12345                     R = ring.SR
  12346             return R(integral(f, v, a, b, **kwds))
> 12347         return integral(self, *args, **kwds)
  12348 
  12349     integrate = integral

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in integrate(expression, v, a, b, algorithm, hold)
    816         return integrator(expression, v, a, b)
    817     if a is None:
--> 818         return indefinite_integral(expression, v, hold=hold)
    819     else:
    820         return definite_integral(expression, v, a, b, hold=hold)

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.BuiltinFunction.__call__ (build/cythonized/sage/symbolic/function.cpp:11922)()
    996             res = self._evalf_try_(*args)
    997             if res is None:
--> 998                 res = super(BuiltinFunction, self).__call__(
    999                         *args, coerce=coerce, hold=hold)
   1000 

/usr/lib/python2.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.Function.__call__ (build/cythonized/sage/symbolic/function.cpp:6949)()
    490                     (<Expression>args[0])._gobj, hold)
    491         elif self._nargs == 2:
--> 492             res = g_function_eval2(self._serial, (<Expression>args[0])._gobj,
    493                     (<Expression>args[1])._gobj, hold)
    494         elif self._nargs == 3:

/usr/lib/python2.7/site-packages/sage/symbolic/integration/integral.py in _eval_(self, f, x)
     88         for integrator in self.integrators:
     89             try:
---> 90                 return integrator(f, x)
     91             except NotImplementedError:
     92                 pass

/usr/lib/python2.7/site-packages/sage/symbolic/integration/external.py in maxima_integrator(expression, v, a, b)
     30         expression = SR(expression)
     31     if a is None:
---> 32         result = maxima.sr_integral(expression,v)
     33     else:
     34         result = maxima.sr_integral(expression, v, a, b)

/usr/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py in sr_integral(self, *args)
    803         """
    804         try:
--> 805             return max_to_sr(maxima_eval(([max_integrate],[sr_to_max(SR(a)) for a in args])))
    806         except RuntimeError as error:
    807             s = str(error)

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.EclObject.__call__ (build/cythonized/sage/libs/ecl.c:8639)()
    804         """
    805         lispargs = EclObject(list(args))
--> 806         return ecl_wrap(ecl_safe_apply(self.obj,(<EclObject>lispargs).obj))
    807 
    808     def __richcmp__(left, right, int op):

/usr/lib/python2.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:6294)()
    376     if ecl_nvalues > 1:
    377         s = si_coerce_to_base_string(ecl_values(1))
--> 378         raise RuntimeError("ECL says: {}".format(
    379             char_to_str(ecl_base_string_pointer_safe(s))))
    380     else:
 .......    
RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined.

This one also

     integrate(log(x + sqrt(x + 1))/(x^2 + 1),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-70-f29d0d9e0a0b> in <module>()
----> 1 anti=integrate(log(x + sqrt(x + Integer(1)))/(x**Integer(2) + Integer(1)),x)
  ......

RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined

Using 8.3.beta6 on Linux Manjaro

Is this a known issue? reported at https://trac.sagemath.org/ticket/25627

Problem with integrate.

sage: var('x')
sage: integrate((cos(x) + 2*sin(x) + 1)/(cos(x)^2 - 2*cos(x)*sin(x) + 2*sin(x) + 3),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-2-f1dceacbaccd> in <module>()
----> 1 integrate((cos(x) + Integer(2)*sin(x) + Integer(1))/(cos(x)**Integer(2) - Integer(2)*cos(x)*sin(x) + Integer(2)*sin(x) + Integer(3)),x)

 .......    
RuntimeError: ECL says: THROW: The catch RAT-ERR is undefined.

This one also

     integrate(log(x + sqrt(x + 1))/(x^2 + 1),x)

gives

RuntimeError                              Traceback (most recent call last)
<ipython-input-70-f29d0d9e0a0b> in <module>()
----> 1 anti=integrate(log(x + sqrt(x + Integer(1)))/(x**Integer(2) + Integer(1)),x)
  ......