# Mathematica Help Urgent (Very New Beginner)

• Nov 2nd 2008, 08:38 AM
slapshot303
Mathematica Help Urgent (Very New Beginner)
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?

Any help would be greatly, greatly appreciated. Thanks.
• Nov 2nd 2008, 05:10 PM
Hood
Yep, the correct syntax would be:
Table[{x,f[x]},{x,{list of x values}}]

or you could do it this way:
{#,f[#]}&/@{list of x values}
which is slightly more cryptic. {#,f[#]}& represents an anonymous function and /@ is map. I suggest you look at the help browser in mathematica, as it is quite useful.