Re: Mathematica Help Urgent (Very New Beginner)
- To: mathgroup at smc.vnet.net
- Subject: [mg93394] Re: [mg93332] Mathematica Help Urgent (Very New Beginner)
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 5 Nov 2008 04:58:30 -0500 (EST)
- Reply-to: hanlonr at cox.net
Table[{x, f[x]}, {x, {1, 7, Pi, E}}] {{1, f[1]}, {7, f[7]}, {Pi, f[Pi]}, {E, f[E]}} {#, f[#]} & /@ {1, 7, Pi, E} {{1, f[1]}, {7, f[7]}, {Pi, f[Pi]}, {E, f[E]}} Bob Hanlon ---- Derek <derekcashel at yahoo.com> wrote: ============= 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. -- Bob Hanlon