[6239] in s-news-athena
More Integration and Algebra
daemon@ATHENA.MIT.EDU (mcarey@indyunix.iupui.edu)
Sun Jan 22 14:17:04 1995
Date: Sun, 22 Jan 1995 13:56:57 -0500
From: mcarey@indyunix.iupui.edu
To: s-news@utstat.toronto.edu
Thanks for all the responses concerning my integration problem. However,
I'd wish to be a bit more specific.
Consider the following function (again):
y = c*x^2 + d*x
Now, integrating the above function for a specific value of c and d is not
a problem, but say I am writing a program which loops 25 times and each
time the above function is multiplied by the previous function and integrated.
(Note: the c's and d's are not available before the program begins)
As an example:
first loop:
----------
say c[1] = 2 and d[1] = 3:
integrate(2x^2 + 3x)
(not a problem here)
Second loop:
-----------
(a new c and d are calculated) say, c[2] = 5 and d[2] = 8
now integrate((2x^2+3x)*(5x^2+8x))
(not that much of a problem)
.
.
.
25th loop:
---------
Now integrate something of the form:
(note: c[25]=4 and d[25]=6)
integrate((2x^2+3x)*(5x^2+8x)*...*(4x^2 + 6x))
(this is a problem)
........
The functional form is the same throughout, only the constants change.
I'm not quite sure how to specify to S that a product of i components
is going to be integrated during the ith loop.
Any help is greatly appreciated.