RE: Mathematica Help Urgent (Very New Beginner)

*To*: mathgroup at smc.vnet.net*Subject*: [mg93391] RE: [mg93332] Mathematica Help Urgent (Very New Beginner)*From*: "David Annetts" <davidannetts at aapt.net.au>*Date*: Wed, 5 Nov 2008 04:57:57 -0500 (EST)*References*: <200811041117.GAA29117@smc.vnet.net>

Hi Derek, > I am just beginning to learn to use Mathematica, and need to > create a table of values. I would like to be able to input > x-values and have the table display f(x), f'(x), and possibly > f''(x) for a given function. I have already specified the > function, and I have found the following input creates tables: > > Table[{x,f[x]},{x,-5,5,.5}] > > My problem is this: I would like to input specifc x-values, > rather than use set intervals as defined in {x,-5,5,.5} > above. Is there a way to specify a list of specific x values > so that Mathematica computes the values of f[x] in table form? You can give Table[] a list of numbers and it works just fine Table[{x, f[x]}, {x, RandomInteger[{1, 10}, 5]}] alternatively, try {#, f[#]}& /@ RandomInteger[{1, 10}, 5] which is essentially the same thing. Regards, Dave.

**References**:**Mathematica Help Urgent (Very New Beginner)***From:*Derek <derekcashel@yahoo.com>