Dear AllI am getting following error whilw finding value of sin pi/4 i typed n(sin(pi/4))in jupyter notebook shellTypeError Traceback (most recent call last) <ipython-input-26-16cf6d20b88c> in <module>() ----> 1 n(sin(pi/Integer(4))) /opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/functional.py in numerical_approx(x, prec, digits, algorithm) 1417 return numerical_approx_generic(x, prec) 1418 else: -> 1419 return n(prec, algorithm=algorithm) 1420 1421 n = numerical_approx /opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.numerical_approx (build/cythonized/sage/symbolic/expression.cpp:34714)() 5998 res = x.pyobject() 5999 else: -> 6000 raise TypeError("cannot evaluate symbolic expression numerically") 6001 6002 # Important -- the we get might not be a valid output for numerical_approx in TypeError: cannot evaluate symbolic expression numericallykindly suggestregards
6222 visits
Outline: Getting started with symbolics symbolic expressions built-in constants & functions algebraic expressions, series integration, differentiation matrices symbolic functions defining simplification finding roots & factors substituting expressions output formats
Getting started with symbolics symbolic expressions built-in constants & functions algebraic expressions, series integration, differentiation matrices symbolic functions defining simplification finding roots & factors substituting expressions output formats
Show video info
Pre-requisite