Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematical Graphing question

  1. May 12, 2009 #1


    User Avatar
    Science Advisor

    Hey, I was wondering if any of you know if it's possible to graph functions in mathematica with respect to a constant instead of a real number.

    For example, plot the function ax from 1 to 10.

    Is there any way to get it to plot this and just realize it needs to throw a's on the vertical axis, or do I always have to specify a definite value of the constant?
  2. jcsd
  3. May 12, 2009 #2


    User Avatar
    Science Advisor
    Homework Helper

    Do you mean you want to plot y = a x for several values of a, like so:
    Code (Text):

    Plot[Table[a x, {a, 1, 10}], {x, -2, 2}]
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Similar Threads for Mathematical Graphing question
Help with Excel graph please
LaTeX Putting Excel graph into LaTeX
Mathematica Question about updating functions
MATLAB Graphing in Matlab