Sharedsupport / 2015-03-29-211559-bug-symbolic-N.sagewsOpen in CoCalc
Examples for support purposes...
h(x) = (floor(8*pi*10^x)-1)^(1/2)
a = h(10)
a
sqrt(floor(80000000000*pi) - 1)
N(a)
Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 879, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/usr/local/sage/sage-6.5/local/lib/python2.7/site-packages/sage/misc/functional.py", line 1298, in numerical_approx return x._numerical_approx(prec, algorithm=algorithm) File "sage/symbolic/expression.pyx", line 4874, in sage.symbolic.expression.Expression._numerical_approx (build/cythonized/sage/symbolic/expression.cpp:27342) raise TypeError("cannot evaluate symbolic expression numerically") TypeError: cannot evaluate symbolic expression numerically
N(sqrt(floor(80000000000*pi) - 1))
501325.654925020