Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Graphing with two variables

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-07-1999
03:00 AM

12-07-1999
03:00 AM

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

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

Labels:

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-07-1999
03:00 AM

12-07-1999
03:00 AM

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

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