On Sun, 4 Jul 2010 05:36:50 -0700 (PDT)
dirkd <dirk.da...@gmail.com> wrote:
> Why is evaluating this expression problematical?
> SAGE respons:
> File "expression.pyx", line 3797, in
> sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:
> TypeError: cannot evaluate symbolic expression numerically
> If I leave out the N( )-operator on the last line the block evaluates
> 1/500*sum(abs(-4*k^2 - 56*k + 329), k, 1, 10)
> which can be evaluated in a new inputbox. Why not in one step?
The result returned from maxima uses a symbolic function object created
on the fly. This is quite different from the sum() function
available on the command line, and unfortunately, it doesn't define a
numerical evaluation function, _evalf_().
If no one beats me to it, I will provide a symbolic sum function in the
next few days. I opened a ticket for this problem:
Thanks for the report.