Re: replace integration by summation [message #84953 is a reply to message #84945] |
Wed, 19 June 2013 13:05   |
fd_luni
Messages: 66 Registered: January 2013
|
Member |
|
|
> But when you took Mats's suggestion and computed INT_TABULATED(t,A1), was the single value zero or not?
No it was not a single value zero.
I had two function like this:
For i=1,n-1 do begin
A2= INT_TABULATED(t[0:i], A1[0:i])
B2= INT_TABULATED(t[0:i], B1[0:i])
endfor
When I replaced the INT_TABULATED by this:
A2 = (t[1]-t[0])*total(A1,/cumulative)
B2 = (t[1]-t[0])*total(B1,/cumulative)
The function A2 = (t[1]-t[0])*total(A1,/cumulative)
gives me completely different values from A2= INT_TABULATED(t[0:i], A1[0:i]). But the function B2 = (t[1]-t[0])*total(B1,/cumulative gives me zeros.
|
|
|