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
- :
- Graph works in Mathcad15 but not Prime 3.1?

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

07-06-2015
02:42 PM

07-06-2015
02:42 PM

Attached is a short worksheet created in both Mathcad 15 and Prime 3.1. The graph at the end of the worksheet works in 15 but not Prime 3.1. I've attempted to make them the same but there is an error in the 3.1 program. Might folks know what is the error in the Prime 3.1 program?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

07-06-2015
04:35 PM

07-06-2015
04:35 PM

You misconstructed your function Fs(a), something around the Summation operator that is wrong.

I couldn't tell what is wrong, but I got an error requiring an integer: Changed N to 2, didn't help, so maybe something with the i=1 below the summation.

I rebuilt the Fs(a) function, and then it worked.

Success!

Luc

6 REPLIES 6

Highlighted
##

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

07-06-2015
03:09 PM

07-06-2015
03:09 PM

Re: Graph works in Mathcad15 but not Prime 3.1?

I can only look at your version 15 file (I don't have 3.1.)

One possible problem is units: in version 15 you need to divide your plot by the units you want; you have put in commas, making your units a second plot (note the dashed blue line under kips.) Since Mathcad recognizes both kips and in as values it will plot your function (and not plot the blue line,) but I'm not sure what that does to Prime after translation.

Highlighted
##

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

07-06-2015
04:25 PM

07-06-2015
04:25 PM

Re: Graph works in Mathcad15 but not Prime 3.1?

Thanks Fred, that explains why the graphed valves in the 15 worksheet weren't as expected. That doesn't seem to help with the Prime worksheet though.

Highlighted

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

07-06-2015
04:35 PM

07-06-2015
04:35 PM

You misconstructed your function Fs(a), something around the Summation operator that is wrong.

I couldn't tell what is wrong, but I got an error requiring an integer: Changed N to 2, didn't help, so maybe something with the i=1 below the summation.

I rebuilt the Fs(a) function, and then it worked.

Success!

Luc

Highlighted
##

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

07-06-2015
04:43 PM

07-06-2015
04:43 PM

Re: Graph works in Mathcad15 but not Prime 3.1?

Daniel Sochor wrote:

Attached is a short worksheet created in both Mathcad 15 and Prime 3.1. The graph at the end of the worksheet works in 15 but not Prime 3.1. I've attempted to make them the same but there is an error in the 3.1 program. Might folks know what is the error in the Prime 3.1 program?

Looks as if there may be a bug in Prime 3.1, or perhaps a misinterpretation on my part of how the summation operator works in Prime. The problem arises in this expression (copied from the M15 version as I can just select, copy and paste ... just as I want):

Earlier in your worksheet, you've got i defined as a range variable (i=[1 2]). It appears as if F_{s} is passing the range variable to F_{si} rather than the value that the summation iterator value. Changing i in the summation to k makes a graph appear.

Stuart

Highlighted
##

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

07-06-2015
04:45 PM

07-06-2015
04:45 PM

Re: Graph works in Mathcad15 but not Prime 3.1?

Nope, it's the 'i', first parameter in the call to Fsi(i,a) in the summation operator that is offending. Probably it was interpreted as the imaginary i, because the error on the graph says to get rid of the imaginary data.

Success!

Luc

Highlighted
##

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

07-06-2015
04:59 PM

07-06-2015
04:59 PM

Re: Graph works in Mathcad15 but not Prime 3.1?

Thank you all very much, I retyped the Fs(a) function and it works. It looks exactly the same as previously but now it functions!