Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

type error when using symbolic calculus

Hello,

I have been usage Sage for a few months. Up to now, plotting, polynomials, and arithmetic functions have been running fine. Now I'm trying to use the symbolic calculation skills of Sage, but ...

I am getting the error : "unable to simplify to float approximation"

when running, for instance :

var('t') sin(t)

on a local-hosted jupyter notebook running the Sagemath8.3 kernel. My os is Ubuntu 18.04

Same error in pure sage :

sage: var('t') t sage: sin(t) --------------------------------------------------------------------------- TypeError
Traceback (most recent call last) <ipython-input-3-17829414d33a> in <module>() ----> 1 sin(t)

/xxxxxxxxxxxxxxxxxxxxxx/lib/python2.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.__float__ (build/cythonized/sage/symbolic/expression.cpp:11836)() 1426 raise 1427 except TypeError: -> 1428 raise TypeError("unable to simplify to float approximation") 1429 return ret 1430

TypeError: unable to simplify to float approximation sage:

type error when using symbolic calculus

Hello,

I have been usage using Sage for a few months. Up to now, plotting, polynomials, and arithmetic functions have been running fine. fine.

Now I'm trying to use the symbolic calculation skills of Sage, but ...

... I am getting the error : "unable to simplify to float approximation"

approximation" when running, for instance :

var('t')
sin(t)

sin(t)

on a local-hosted locally hosted jupyter notebook running the Sagemath8.3 SageMath 8.3 kernel. My os OS is Ubuntu 18.0418.04.

Same error in pure sage Sage :

sage: var('t') t sage: sin(t)
  --------------------------------------------------------------------------- TypeError 
Traceback (most recent call last) <ipython-input-3-17829414d33a> in in <module>() ----> 1 sin(t)

sin(t) /xxxxxxxxxxxxxxxxxxxxxx/lib/python2.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.__float__ (build/cythonized/sage/symbolic/expression.cpp:11836)() 1426 raise 1427 raise 1427 except TypeError: -> 1428 raise TypeError("unable to simplify to float approximation") float approximation") 1429 return ret 1430

return ret 1430 TypeError: unable to simplify to float approximation sage:

float approximation sage:

type error when using symbolic calculus

I have been using Sage for a few months. Up to now, plotting, polynomials, and arithmetic functions have been running fine.

Now I'm trying to use the symbolic calculation skills of Sage, but ... I am getting the error : "unable to simplify to float approximation" when running, for instance :

var('t')
sin(t)

on a locally hosted jupyter notebook running the SageMath 8.3 kernel. My OS is Ubuntu 18.04.

Same error in pure Sage :

sage: var('t') t var('t')
t
sage: sin(t)
Traceback (most recent call last)
<ipython-input-3-17829414d33a> in <module>()
----> 1 sin(t)
/xxxxxxxxxxxxxxxxxxxxxx/lib/python2.7/site-packages/sage/symbolic/expression.pyx in
sage.symbolic.expression.Expression.__float__
(build/cythonized/sage/symbolic/expression.cpp:11836)()
    1426                    raise
    1427            except TypeError:
 -> 1428                raise TypeError("unable to simplify to float approximation")
    1429        return ret
    1430

TypeError: unable to simplify to float approximation
sage: