Hi,
On Sun, 4 Jul 2010 05:36:50 -0700 (PDT)
dirkd wrote:
> 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:
> File "expression.pyx", line
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:
Traceback (most recent call last):
File "", line 1, in
File "_sage_input_109.py", line 9, in
open(