Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Re: passing parameters' topicStudent Support Forum > General > Archives > "Re: passing parameters"

Help | Reply To Topic
Author Comment/Response
David Belisle
05/18/97 07:16am

Reply to message #360 from lyndal: > I have an external file consisting
of 200+ rows of 4 numbers each. > I need to pass these numbers through
the Numerical Integration procedure as the four coefficients of the
function (i.e. a + bx + cx^2 + dx^3 - except one that can't be integrated
mathematically) and have the output captured as a column of data in
another file. > I would also like to do this for 22 different integration
limits > (i.e. {x, 0, 1} {x, 1, 2} ... {x, 80, 85} etc.) and have
each of these be a column in the output file so that the output file
consists of 200+ rows with 22 numbers per row. > Thank you! > lyndal
> Try using the Table command. Assign a name to the list of coefficient
(ie a), then: Table[Map[NIntegrate,{a[[i,1]] 1,a[[i,2]] x,a[[i,3]]
x^2,a[[i,4]] x^3}],{i,Length[a]}]; Cheers, Dave

URL: ,
Help | Reply To Topic