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

    Nabeshin

    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

    CompuChip

    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}]
     
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematical Graphing question
Loading...