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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Plotting Trouble in Mathcad 7 Prime

Cornel
18-Opal

Plotting Trouble in Mathcad 7 Prime

Hello,

I want to plot some functions:

CornelBejan_0-1669112571362.png

CornelBejan_2-1669112585373.png

 

CornelBejan_3-1669112652084.png

CornelBejan_4-1669112688130.png

And the function f2(t) should look similar to the function f1(t), not exactly, but something like f1(t) looks.

 

CornelBejan_5-1669112764515.png


The problem is that the graph of the function f2(t) is displayed only when I increase the time axis so much (10^1, 10^2, 10^3, etc), which is a bit much because I want to see this part (see image below) from the beginning as it looks, not a straight line

 

CornelBejan_6-1669113249474.png

And not like this (see image below), because I want to be able to see the transient/beginng part much more, how will look (like the image shown above)

CornelBejan_8-1669113502666.png



Good:

CornelBejan_9-1669113863470.png

Bad

CornelBejan_10-1669113897914.png

CornelBejan_11-1669113934129.png

CornelBejan_12-1669114023009.png


Bad

CornelBejan_13-1669114098415.png

 

I would like, if it is possible, to plot both functions on the same graph and to be able to see the beginning part for the function f2(t) just as I can see it in the case of the function f1(t)

 

Mathcad Prime 7 file attached.

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Cornel)

Have you checked the values that f2(t) gives a s a function of t?

There's only ONE real result in the range for t=0..0.01, that is when t=0; for all other values of t, f2(t) gives a complex result.

The next thing you need to know (remember) is that Mathcad doesn't plot complex values. Now because there's one real result value, you get no error message, but the complex values still don't plot.

You can decide to plot the real part, or the imaginary part of f2(t), then you might get:

LucMeekes_0-1669141508808.png

respectively:

LucMeekes_1-1669141533798.png

and you can also plot the magnitude:

LucMeekes_2-1669141579492.png

Success!
Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:Cornel)

Have you checked the values that f2(t) gives a s a function of t?

There's only ONE real result in the range for t=0..0.01, that is when t=0; for all other values of t, f2(t) gives a complex result.

The next thing you need to know (remember) is that Mathcad doesn't plot complex values. Now because there's one real result value, you get no error message, but the complex values still don't plot.

You can decide to plot the real part, or the imaginary part of f2(t), then you might get:

LucMeekes_0-1669141508808.png

respectively:

LucMeekes_1-1669141533798.png

and you can also plot the magnitude:

LucMeekes_2-1669141579492.png

Success!
Luc

Yes, that's it, the function f2(t) also has complex values ​​for the exponent of e: e^(a+b*i), in addition to real values ​​of the exponent of e: e^(c), and unlike the function f1(t) which only has real values ​​of the exponent of e (e being multiplied only by real values ​​in both cases: d*e^(...)), and a,b,c,d represent real values. Only its exponent of e is different, in one case (f1(t)) has only real values, and in the other case (f2(t)) has also complex values in addition to real values ​​of the exponent of e.

OK. Thank you for the answer. If anything else comes up I will post.

Top Tags