Turn on suggestions

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

Showing results for

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

Showing results for

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

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

Feb 23, 2021
04:07 PM

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

Feb 23, 2021
04:07 PM

Mathcad not able to plot a graph?

Hi all,

I need some help plotting graphs. I have defined the function f(t) however Mathcad still says the function is undefined. Please provide solution. I have attached a screenshot have a look.

Solved! Go to Solution.

Labels:

ACCEPTED SOLUTION

Accepted Solutions

Feb 23, 2021
07:37 PM

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

Feb 23, 2021
07:37 PM

For more versatility I would make the peak voltage V an argument of all functions involved:

You don't need symbolical evaluation for plotting, but of course you could inspect the values of the coefficients that way:

If the last symbolic representation is important for you, you may try to define A1 and B1 separately like A0 and let the sum beginning from n=2.

Prime 6 sheet attached

9 REPLIES 9

Feb 23, 2021
04:59 PM

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

Feb 23, 2021
04:59 PM

In order to plot, Prime needs the function to be numerically known. That means that all symbols you use must be numerically defined, have a value.

In your function you have two DIFFERENT symbols V, one is blue, it is a unit (for Volt), and while that is numerically defined as 1 V, you have defined the function such that you transform it symbolically. The symbolic processor, which is happy to deal with (numerically undefined) symbols, doesn't know about units and treats them as (unknown) symbols. So it transforms the V into a V. Now you want to plot it. That's a task for the numeric processor, that doesn't know the value of V, and (rightfully) complains that the function is 'undefined'.

Possible solutions:

1. Don't transform the function symbolically.

2. Define V:=1 V. before the function definition.

Success!

Luc

So now you ask: But what about *t *, I didn't define *t* numerically?

Prime allows ONE variable to be undefined for a plot, that is the argument to the function, which it automatically and invisibly (behind the scenes) defines as a range variable from -10 to 10. That's why the plot shows that range along the x-axis.

But it's OK to override that automatic definition If you define t:=0,0.1...1 before the plot, it'll plot your function from t=0 to 1 in steps of 0.1.

Feb 23, 2021
05:46 PM

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

Feb 23, 2021
05:46 PM

okay so I avoid doing the symbolic transformation and then define t and then it should work? Have a look at this file, is this what you wanted me to do?

Feb 23, 2021
07:37 PM

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

Feb 23, 2021
07:37 PM

For more versatility I would make the peak voltage V an argument of all functions involved:

You don't need symbolical evaluation for plotting, but of course you could inspect the values of the coefficients that way:

If the last symbolic representation is important for you, you may try to define A1 and B1 separately like A0 and let the sum beginning from n=2.

Prime 6 sheet attached

Feb 24, 2021
03:53 AM

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

Feb 24, 2021
03:53 AM

I want to ask why doesn't it work when v(1,t) and it gives the wrong answer when symbolic arrow is used for B(n) it ends up giving zero? Are these limitations in the software like we discussed previously?

Feb 24, 2021
06:55 AM

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

Feb 24, 2021
06:55 AM

- Tags:
- Electric_circuit

Feb 24, 2021
10:38 AM

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

Feb 24, 2021
10:38 AM

@AS_9824434 wrote:

I don't know why the symbolics behave like it does. Sometimes we find a workaround for a problem or limitation, sometimes we don't.

But wrong results as given by the new symbolic in Prime 6 and later versions sure are not limitations but severe bugs.

Feb 24, 2021
12:17 PM

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

Feb 24, 2021
12:17 PM

Isn't prime 6 the latest version? I've heard prime 7 will be out soon, so will it use the same symbolic engine as prime 6?

Feb 24, 2021
12:59 PM

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

Feb 24, 2021
12:59 PM

@AS_9824434 wrote:

As far as I know Prime 7 is scheduled for the beginning of march.

Prime 6 contains two symbolic engines (the legacy MuPad and the new one).

Prime 7 will contain the new engine only. Lets hope that they will improve it.

Feb 25, 2021
09:15 AM

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

Feb 25, 2021
09:15 AM

Mathcad Prime 7 will be released on March 2nd, 2021.