| Author |
Comment/Response |
Jonathan Stallings
|
02/24/09 10:35pm
Hello all,
I am trying to first define an array as a series of functions that I can evaluate. Here is an example:
SampleArray[x_] := {Exp[x], x, 2 x}
This works fine. My problem is that I am trying to create this kind of array inside of a loop. Each iteration of the loop finds the next element of the array. Here is what I guessed the code to look like:
SampleArray[[i]][x_] := ix .
This is not exactly what I am using but it gets my point across. I eventually hope to be able to plot all of my functions on one graph which shouldn't be a problem since SampleArray is already defined as an array of functions. Does anyone know how I can define an array of functions each element at a time?
-Jonathan Stallings
URL: , |
|