Get Help

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
- :
- Re: Real Solution of an Equation and Plot it

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

Showing results for

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

12-24-2018
07:51 AM

12-24-2018
07:51 AM

Hello Friends,

I want to know the solution of the given below equation using Mathcad Prime 3.1.

In above equation, two variable i.e. Phi. & Zeta is given but need to find out Psi.

There is a figure given for reference which tells the relation in these variable as attache herein post.

Can anyone tell me how to calculate Psi using the given references and also if I need to plot it, then how can it be achived.

Thanks, Yogesh

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

12-27-2018
06:01 AM

12-27-2018
06:01 AM

I fired up another machine that has Prime 3.1...

You should be able to continue from here.

Prime 3.1 file attached.

Success!

Luc

40 REPLIES 40

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

12-24-2018
08:19 AM

12-24-2018
08:19 AM

Re: Real Solution of an Equation and Plot it

Hi,

Enclosed is Mathcad 15. You will need to convert it to Prime 3.1

Cheers

Terry

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

12-24-2018
09:43 AM

12-24-2018
09:43 AM

Re: Real Solution of an Equation and Plot it

Can anyone please explain me this? I dont have any experience with Mathcad 15 and its seems to me bit difficult to understand.

Thank You @terryhendicott for your reply.

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

12-24-2018
10:22 AM

12-24-2018
10:22 AM

Re: Real Solution of an Equation and Plot it

Explain you what? What is it that you don't understand?

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

12-24-2018
10:23 AM

12-24-2018
10:23 AM

Re: Real Solution of an Equation and Plot it

Hi,

Mathcad 15 is a predecessor to Prime 3.1. I do not have access to Prime 3.1

Mathcad file names are *.xmcd.

Prime 3.1 file names are *.mcdx

Prime 3.1 comes with a converter that changes *.xmcd files to *.mcdx. Use it and you get 3.1

Cheers Terry

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

12-26-2018
02:54 AM

12-26-2018
02:54 AM

Re: Real Solution of an Equation and Plot it

Thanks Teryy.

Although my actual problem is that I am unable to find the value of psi, wherein two variables are already given.

Apparently, I did not sepcify here that zeta value is being calculated from a equation and the output comes in unit 1/N.

In your sheets, as converter by @VladimirN (Thanks for your help), I have replaced the assumption of zeta to actual value and the function of zeta & phi gives an error of uncomp attached is the snaps from the same.

Thanks for your help.

Yogesh

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

12-24-2018
10:59 AM

12-24-2018
10:59 AM

Re: Real Solution of an Equation and Plot it

Or do like this:

(Created in Prime 4, file attached, but you cannot open that in Prime 3.1)

I suggest you recreate the sheet in your Prime 3.1.

Success!

Luc

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

12-24-2018
11:24 AM

12-24-2018
11:24 AM

Re: Real Solution of an Equation and Plot it

Alternatively:

Success!

Luc

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

12-26-2018
02:39 AM

12-26-2018
02:39 AM

Re: Real Solution of an Equation and Plot it

Hi @LucMeekes,

I have tried your this alternative and attached is the error.

for solve function, it says, no solution found.

any suggestion please.

thanks.

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

12-26-2018
03:27 AM

12-26-2018
03:27 AM

Re: Real Solution of an Equation and Plot it

First off: do not just post pictures. Post worksheets.

Second: I say there's an error in your definition of the F() function. In the second term one of the two phi's should be psi.

Last: did you try to reproduce my first solution? And what does it give?

Success!

Luc

P.S. Even though the function definition is wrong, a solution is still found by Mathcad 11. But the result is quite different:

I guess Prime (with mupad) is not powerful enough to solve it.

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

12-26-2018
06:38 AM

12-26-2018
06:38 AM

Re: Real Solution of an Equation and Plot it

Hi @LucMeekes,

Regarding your first solution, I have attached the worksheet here for your reference. My picture dont know why not appear like your does here so I have to always attached the picture.

in your first solution, psi = "Function: psi {VARIABLE}" shown.

Surely, I am making a silly mistake here but since my mathematic is not as good as your guys, please suggest.

Thanks, Yogesh

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

12-26-2018
09:02 AM

12-26-2018
09:02 AM

Re: Real Solution of an Equation and Plot it

Hi,

The value you are using is not in the range of plotting 0.1 to 1000 2.6x10^-5 check this value

In the function definition for "f" don't use "= 0" on the end

Don't in the next line set the function "f" = 0

Regards

Terry

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

12-26-2018
09:25 AM

12-26-2018
09:25 AM

Re: Real Solution of an Equation and Plot it

This is what you produced, with errors marked:

Do not put an =0 at the end of the definition of f().

You are mixing up the psi's and the phi's! Check your definitions, and compare to my sheet.

Finally you need to vectorize the expression to plot.

You may want to set the horizontal axis to a logarithmic scale...

Success!

Luc

P.S. You cannot just paste a picture into the text on this forum (well, you can, and it looks great, but once you submit the post, the picture is replaced by an icon).

To insert a picture in the text (like the one in this post) you HAVE to have your picture saved as a file (.png, .jpg, or the like) and use the "Photo's" button just above the edit window and follow the instructions.

Other than that...whenever possible always attach the Mathcad/Prime sheet.

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

12-26-2018
10:11 AM

12-26-2018
10:11 AM

Re: Real Solution of an Equation and Plot it

Hi,

Thanks @LucMeekes and @terryhendicott for the explanation.

I have corrected the sheet as you guys explained. Still plot is somewhat not coming in a way as expecting it to be.

Attached is the sheet for your reference. Plot is the secondary objective in my case first I need a value of psi which shall be used further on the basis of the equation. Regarding the zeta, yes this value is correct 2.567*10^-5. It is the calculated value which shall be used to calculate psi. One more issue here. I did not yet specify the actual unit of zeta that is 1/N so please we shall keep this in mind too.

We usually do this kind of equation using excel by goal seek function but Im sure there should be more advanced feature in prime to do the same/similar.

Thanks,

Yogesh

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

12-26-2018
11:03 AM

12-26-2018
11:03 AM

Re: Real Solution of an Equation and Plot it

There's something wrong with your plot, but I can't figure out what.

Delete the plot, insert a new one and make sure you vectorize the psi function for the vertical axis, as you did not do that yet.

Success!

Luc

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

12-26-2018
11:53 AM

12-26-2018
11:53 AM

Re: Real Solution of an Equation and Plot it

Didn't you look at the picture here -> https://community.ptc.com/t5/PTC-Mathcad/Real-Solution-of-an-Equation-and-Plot-it/m-p/586555/highlig...

concerning getting the value of psi with the value of zeta you provided.

Look for "Example of use".

To fix the problem with the plot you have to do three things:

1) drag the put region a bit downwards as its to high now and does not consider the definition of the function and zeta vector

2) vectorize the function call psi(zeta,phi) - that is the arrow over it (Operators menu, lower right)

3) change the plot type from "column trace" to "line trace"; change line style to solid

4) (yes, thats 4 of 3) delete the red flagged "0.1" on the ordinate

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

12-26-2018
12:45 PM

12-26-2018
12:45 PM

Re: Real Solution of an Equation and Plot it

Hi @Werner_E

Did exactly as you mentioned in earlier posts. Now ploting is somewhat similar to yours except the begining of the curves. My problem is that I need to use the value of psi in further equation so I need some output as well from the plot. I am new to Mathcad so dont know much about but thanks to you guys for making it easier for me.

I have attached below my problem again just to elaborate it more.

Now as per the above picture, by some formulas, I have calculate the value of zeta (in 1/N unit) & phi as mentioned in picture. Now using the equation #40, approximate value of psi shall be calculate and ploted (additionaly).

and then psi value will be used in above Ft equation with a possible result.

I hope now its clear to everyone what I actually need. Attached is my worksheet for reference in line to your suggestion.

Please suggest. Thanks

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

12-26-2018
12:56 PM

12-26-2018
12:56 PM

Re: Real Solution of an Equation and Plot it

Not sure whether you have access to prime 3.1 file so herein attached the snap from the worksheet with the further quation thats need to be calculated based on these variables.

If every thing done correctly, then why Ft equation does not producing the result. This is my ultimate goal for solving the psi, zeta & phi variables. Any suggestion on this please.

And just for ref. attached below is the formula, used to calculate zeta value.

Many thanks to everyone.

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

12-26-2018
02:00 PM

12-26-2018
02:00 PM

Re: Real Solution of an Equation and Plot it

psi its a function.

So in the calculation at the end which throws that error you want probably replace "psi" by "psi(2.567*10^-5, 0,396)".

Furthermore you can't simply introduce units partially.

If zeta is of unit 1/n, then the "2" ind (2+zeta) must be of the same dimension, for example. You can't add quantities of different dimensions.

What about the dimension of phi and psi? I see no simple way to make your function f dimensionwise correct.

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

12-26-2018
02:00 PM

12-26-2018
02:00 PM

Re: Real Solution of an Equation and Plot it

Yogesh,

We can all read Prime 3.1 files. We generally use a higher version of Prime: 4 or 5. The problem is that from Prime 4 or 5 we cannot save the sheet to a previous/older version, like 3.1, 3, 2 or 1.

Regarding the Unit 1/N you have a problem. In the function for f() you are adding it to the dimensionless number 2 in the second term. You cannot add apples to oranges.

I guess the function f() is emperical, that is, not based on sound physical models. If you want to work with units here, which is usually preferable, you're in for a little more challenge.

Success

Luc

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

12-27-2018
04:12 AM

12-27-2018
04:12 AM

Re: Real Solution of an Equation and Plot it

Hi Luc,

If I could remove the unit from zeta equation, then I will be ok with that. Is there any way to not consider the unit of a variable that is driven by multiple variables? Phi and Psi are the dimensionless variables thus doesnt have any unit but IEEE has given a formula for calculating zeta that contains multiple constant and other combination of units which yield the result in 1/N.

However, these all are the load factors so may be considered as unit less variable but no idea how to remove the unit from zeta result.

Any sugegstion on this?

Thanks

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

12-26-2018
01:24 PM

12-26-2018
01:24 PM

Re: Real Solution of an Equation and Plot it

Hi,

Cheers

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

12-27-2018
04:01 AM

12-27-2018
04:01 AM

Re: Real Solution of an Equation and Plot it

Hi,

As pe your snap given, I did the same but wondering its throwing an error for variable "n". However at top right, I am already defining "n" but still it says "This variable is undefined..."

Have a look at below snap:

Additionaly, calculating Ft as wihtout function of other variables, it is producing the result. Highlighted in above snap.

BTW, did you get the result of your function as you posted for example?

PS: I am not using any unit as of now for solving this example.

Thanks.

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

12-27-2018
05:37 AM

12-27-2018
05:37 AM

Re: Real Solution of an Equation and Plot it

Yogesh,

Attach the worksheet... NOT just a picture.

Luc

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

12-27-2018
05:43 AM

12-27-2018
05:43 AM

Re: Real Solution of an Equation and Plot it

Don't use a numeric evaluation when you define a function!

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

12-27-2018
05:45 AM

12-27-2018
05:45 AM

Re: Real Solution of an Equation and Plot it

Hi,

If Ft is defined as a function you need to use it as a function not just put the equal sign after it

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

12-27-2018
05:48 AM

12-27-2018
05:48 AM

Re: Real Solution of an Equation and Plot it

And what if n is inbetween 1 and 2?

Luc

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

12-27-2018
05:56 AM

12-27-2018
05:56 AM

Re: Real Solution of an Equation and Plot it

Hi Luc,

n is a whole number representing the number of connectors it never should be input as a number between 1 and 2

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

12-27-2018
06:01 AM

12-27-2018
06:01 AM

I fired up another machine that has Prime 3.1...

You should be able to continue from here.

Prime 3.1 file attached.

Success!

Luc

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

12-27-2018
06:29 AM

12-27-2018
06:29 AM

Re: Real Solution of an Equation and Plot it

Hi @LucMeekes, @Werner_E,

Both of yours functions working properly now. Now I can manage the zeta with unit as well and it doesnt reproduce any error. Ploting is also pretty much similar to one shown in IEEE and I can also use the psi function in further equations as well for solving.

Attached herein sheet with both options for your reference.

Thanks to you guys and a big applaud to all of you for helping there.

Cheers !!