#9424: FP evaluation of symbolic sums fails
-----------------------------+--------------------------
Reporter: burcin | Owner: burcin
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+--------------------------
Changes (by rws):
* type: enhancement => defect
Old description:
> Symbolics sums returned from maxima cannot be numerically evaluated,
> since they don't define an `_evalf_()` method.
>
> This was reported by dirkd on sage-support:
>
> {{{
> Why is evaluating this expression problematical?
>
> y1(x)=x^2;y2(x)=5-x;
> a0=1;an=3;Delta=(an-a0)/n;p(k)=a0+(k-1/2)*Delta;
> I(n)=sum(abs(y2(p(k))-y1(p(k)))*Delta,k,1,n);
> N(I(10))
>
> SAGE respons:
> <snipped traceback>
> File "expression.pyx", line 3797, in
> sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:
> 17022)
> TypeError: cannot evaluate symbolic expression numerically
> }}}
>
> Here is the thread:
>
> http://groups.google.com/group/sage-support/t/615b15ca638c9652
>
> See also #17422
New description:
Symbolics sums returned from maxima cannot be numerically evaluated, since
they don't define an `_evalf_()` method.
This was reported by dirkd on sage-support:
{{{
Why is evaluating this expression problematical?
y1(x)=x^2;y2(x)=5-x;
a0=1;an=3;Delta=(an-a0)/n;p(k)=a0+(k-1/2)*Delta;
I(n)=sum(abs(y2(p(k))-y1(p(k)))*Delta,k,1,n);
N(I(10))
SAGE respons:
<snipped traceback>
File "expression.pyx", line 3797, in
sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:
17022)
TypeError: cannot evaluate symbolic expression numerically
}}}
Here is the thread:
http://groups.google.com/group/sage-support/t/615b15ca638c9652
See also #15346
--
--
Ticket URL: <http://trac.sagemath.org/ticket/9424#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.