Results 1 to 2 of 2

Math Help - Mathematica Help Urgent (Very New Beginner)

  1. #1
    Newbie
    Joined
    Nov 2008
    Posts
    1

    Exclamation 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.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Oct 2008
    Posts
    12
    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.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Simple derivative - beginner question - in Mathematica
    Posted in the Math Software Forum
    Replies: 0
    Last Post: May 27th 2011, 04:40 PM
  2. Beginner Help with Wolfram Mathematica pl!
    Posted in the Math Software Forum
    Replies: 8
    Last Post: April 26th 2011, 11:58 AM
  3. Mathematica Help (Beginner) - Euler's/Heunís Method
    Posted in the Math Software Forum
    Replies: 0
    Last Post: December 2nd 2009, 07:42 PM
  4. Beginner to mathematica
    Posted in the Math Software Forum
    Replies: 8
    Last Post: November 13th 2008, 01:39 PM
  5. Beginner to Mathematica's question! using Module!
    Posted in the Math Software Forum
    Replies: 1
    Last Post: November 6th 2008, 04:28 PM

Search Tags


/mathhelpforum @mathhelpforum