Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

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.

sagemath / sage Public

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't evaluate numerically symbolic expression resulting from integral(). #8752

sagetrac-lfousse mannequin opened this issue Apr 23, 2010 · 2 comments

Can't evaluate numerically symbolic expression resulting from integral(). #8752

sagetrac-lfousse mannequin opened this issue Apr 23, 2010 · 2 comments

Comments

sagetrac-lfousse mannequin commented Apr 23, 2010

Consider the following (in sage 4.3.5):

sage: integral(exp(-x^2), x, 17, 42) -1/2*sqrt(pi)*erf(17) + 1/2*sqrt(pi)*erf(42) sage: N(-1/2*sqrt(pi)*erf(17) + 1/2*sqrt(pi)*erf(42)) 0.000000000000000 
sage: N(integral(exp(-x^2), x, 17, 42)) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /opt/sage-4.3.5/ in () /opt/sage-4.3.5/local/lib/python2.6/site-packages/sage/misc/functional.pyc in numerical_approx(x, prec, digits) 1161 prec = int((digits+1) * 3.32192) + 1 1162 try: -> 1163 return x.numerical_approx(prec) 1164 except AttributeError: 1165 from sage.rings.complex_double import is_ComplexDoubleElement /opt/sage-4.3.5/local/lib/python2.6/site-packages/sage/symbolic/expression.so in sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:17043)() TypeError: cannot evaluate symbolic expression numerically 

Component: calculus

Keywords: integral, numerical conversion

The text was updated successfully, but these errors were encountered: