Mathematical Graphing question

  • Mathematica
  • Thread starter Nabeshin
  • Start date
  • #1
Nabeshin
Science Advisor
2,205
16

Main Question or Discussion Point

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?
 

Answers and Replies

  • #2
CompuChip
Science Advisor
Homework Helper
4,302
47
Do you mean you want to plot y = a x for several values of a, like so:
Code:
Plot[Table[a x, {a, 1, 10}], {x, -2, 2}]
 
Top