cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Graphing with two variables

Graphing with two variables

I want to vary one independant variable thru a range of values and plot it.
Then, change another variable and run the first thru the same range without without defining two separate functions:
w:1;10 Variable 1
R1:5 Variable 2, first value
R2:6 Variable 2, second value
H1(w):R1*w Function 1
H2(w):R2*w Function 2
Plot H1 and H2

I want to be able to define just
one function,ie, H[i(w), and increment it to do the second calculation.
Sounds simple but, I'm stumped.
Lee Snook
1 REPLY 1

Graphing with two variables

Function method:
Define function H(w,R).
Define w[i
Plot H(w[i,R1),H(w[i,R2) vs w[i

Array Method:
Define H[i,j in terms of w[i and R[j
Plot H[i,0, H[i,1 vs w[i

Adding a comma after the first of the dependent variables (Y axis) inserts another placeholder for the second function to be plotted. The second function plots using the same independent variable. If you need a second range of independent values, use the comma on the x axis. First function first variable, second function second variable, etc.. Mathcad allows you to plot more functions than you should.


---------------------
Physics: Common Sense made Obscure by Mathematics
Announcements