Results 1 to 2 of 2

Math Help - How do I plug in a value into a function with Maxima?

  1. #1
    s3a
    s3a is offline
    Super Member
    Joined
    Nov 2008
    Posts
    597

    How do I plug in a value into a function with Maxima?

    Let's say I did diff(x^2, x); which will give me 2x, and imagine that 2x is %o1 (output 1), how can I plug in a value for x into the function without having to retype the function. This is a basic example but if the function is huge, it would be very convenient to know this.

    Any input would be greatly appreciated!
    Thanks in advance!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by s3a View Post
    Let's say I did diff(x^2, x); which will give me 2x, and imagine that 2x is %o1 (output 1), how can I plug in a value for x into the function without having to retype the function. This is a basic example but if the function is huge, it would be very convenient to know this.

    Any input would be greatly appreciated!
    Thanks in advance!
    Code:
    (%i4) f(x):=''(diff(x^2,x));
    (%o4)                             f(x) := 2 x
    (%i5) f(2);
    (%o5)                                  4
    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Maxima & Minima of Multivariable Function
    Posted in the Calculus Forum
    Replies: 2
    Last Post: October 14th 2010, 05:20 AM
  2. [SOLVED] Laplace approximation (plug'n'chug problem)
    Posted in the Statistics Forum
    Replies: 0
    Last Post: August 26th 2010, 11:38 AM
  3. Latex plug in for microsoft office
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: July 7th 2010, 05:23 PM
  4. Replies: 5
    Last Post: June 18th 2010, 06:32 PM
  5. Find Maxima Minima Of A Function
    Posted in the Calculus Forum
    Replies: 6
    Last Post: April 8th 2008, 12:51 PM

Search Tags


/mathhelpforum @mathhelpforum