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
- :
- Multiple Range Variable

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-15-2021
04:00 PM

06-15-2021
04:00 PM

Multiple Range Variable

Hi,

I need help to figure out how to plot different values of Rac (Disabled region in attached file) against Frequency(F)

Thank you

Jacob

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

06-18-2021
04:59 AM

06-18-2021
04:59 AM

Outside of the function definition you have defined Rac as a value with units.

You've defined

H(w,Rac):=....

Here w and Rac are *parameters* to the function H. There is NO relationship between the *parameter* Rac and the *variable* Rac that you defined before. But the *variables* L and C are defined before the function, with value and unit. The function definition uses those *variables*, and their units, and finds that the definition of H is not unit-balanced. So you must add a unit to the *parameter* Rac within the function definition to correct that. That subsequently means that when calling H (as you do in the plot) you have to provide the resistor value for the *parameter* Rac without unit, otherwise you get another unit-unbalance.

If, instead, you had defined the function H as:

H(w):=....

Then the function would be defined with the *variable* Rac, as defined before, outside of the function, but that makes it more cumbersome to plot the function for various values of Rac.

The most versatile method is to define H with all parameters, like:

H(w,R,L,C):=...

Then you can define the values for w, R, L, and C and plot it.

Success!

Luc

12 REPLIES 12

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

06-15-2021
04:32 PM

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

06-15-2021
05:06 PM

06-15-2021
05:06 PM

Hi,

I did 't add the correct attachment initially, However question remains the same.

How can I plot for Variable values of Rac Versus Frequency(F)

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

06-15-2021
10:49 PM

06-15-2021
10:49 PM

Hi,

To plot what you intend you need the same number of points on both scales.

This can be achieved like the enclosed file.

Cheers

Terry

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

06-16-2021
04:26 PM

06-16-2021
04:26 PM

Hi Terry,

Thank you very much for your patience and willingness to help., I think you are ine right direction. Will you please this attachment and reply

Jacob

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

06-16-2021
08:11 PM

06-16-2021
08:11 PM

Hi,

Programming is not necessary.

To plot a family of curves there is no automatic way you have to use Plots | Traces | Add Trace on the ribbon manually to get another line.

I do not have a electrical background so cannot answer your questions about j*2*pi*f.

Cheers

Terry

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

06-16-2021
10:52 PM

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

06-17-2021
06:57 AM

06-17-2021
06:57 AM

- Tags:
- Prime_7.0

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

06-17-2021
03:09 PM

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

06-17-2021
07:04 PM

06-17-2021
07:04 PM

Without *1Ω, we must put ohm unit every time.

- Tags:
- Electric_circuit

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

06-18-2021
05:43 PM

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

06-18-2021
04:59 AM

06-18-2021
04:59 AM

Outside of the function definition you have defined Rac as a value with units.

You've defined

H(w,Rac):=....

Here w and Rac are *parameters* to the function H. There is NO relationship between the *parameter* Rac and the *variable* Rac that you defined before. But the *variables* L and C are defined before the function, with value and unit. The function definition uses those *variables*, and their units, and finds that the definition of H is not unit-balanced. So you must add a unit to the *parameter* Rac within the function definition to correct that. That subsequently means that when calling H (as you do in the plot) you have to provide the resistor value for the *parameter* Rac without unit, otherwise you get another unit-unbalance.

If, instead, you had defined the function H as:

H(w):=....

Then the function would be defined with the *variable* Rac, as defined before, outside of the function, but that makes it more cumbersome to plot the function for various values of Rac.

The most versatile method is to define H with all parameters, like:

H(w,R,L,C):=...

Then you can define the values for w, R, L, and C and plot it.

Success!

Luc

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

06-18-2021
05:41 PM

06-18-2021
05:41 PM

Thank you @LucMeekes for taking time to give a very detailed answer. I really appreciate this

Jacob