Skip to main content
1-Visitor
October 23, 2014
Question

Mathcad15 to Prime PTC 3.0 Range Function Issue

  • October 23, 2014
  • 2 replies
  • 2454 views

Hi,

I am use tot Mathcad 15 and I am having issues transferring my range function over into Prime PTC 3.0. I am attaching both files for insight about the issue. The mathcad15 file works fine, but I cannot get the Prime3 file to execute anymore.

Any assistance would be greatly appreciated.

Thank you,

C.

2 replies

23-Emerald V
October 23, 2014

Charles Cartin wrote:

Hi,

I am use tot Mathcad 15 and I am having issues transferring my range function over into Prime PTC 3.0. I am attaching both files for insight about the issue. The mathcad15 file works fine, but I cannot get the Prime3 file to execute anymore.

Any assistance would be greatly appreciated.

Thank you,

C.

If you mean the function R, then try converting it to a programmed "if" block.

Alternatively, get rid of the "if" function and try just the boolean expression on its own - that should return 1 if the condition is true and 0 otherwise with no need for the "if".

Stuart

Sorry, haven't got Prime so I can't see what the problem is.

CC_Ryder1-VisitorAuthor
1-Visitor
October 23, 2014

I have tried that but it still is not working appropriately. I am puzzled.

23-Emerald V
October 23, 2014

Charles Cartin wrote:

I have tried that but it still is not working appropriately. I am puzzled.

Does the plot below show the behaviour you expect in M15? If so, does it behave like this in Prime?

collab+-+14+10+23+boolean+test+01.JPG

Stuart

12-Amethyst
October 23, 2014

Hi

I think that thefundamental issue is that Mathcad15 assumes that 0 matches any unit while Prime requires the units to be correct.

So for each of the functions S(theta), V(theta) , ... prime complains at adding 0 (not ft) to a value in ft.

Attached is prime 2 version & first 2 plots work.

Hope this helps

Andy

25-Diamond I
October 23, 2014

A Westerman wrote:

Hi

I think that thefundamental issue is that Mathcad15 assumes that 0 matches any unit while Prime requires the units to be correct.

So for each of the functions S(theta), V(theta) , ... prime complains at adding 0 (not ft) to a value in ft.

Attached is prime 2 version & first 2 plots work.

Hope this helps

Andy

You are absolutely right. Because Prime uses dynamic unit checking its most of the time necessary to state the unit even if the value is 0. Its good habit anyway to do so. Mathcad 15 used static unit check and so was able to determine the correct unit from the context. Dynamic checking is necessary to be able to get values of different dimensions into one matrix, for example. So while it may have it drawbacks when converting older sheets, its a step foreward.

Attached the working sheet in Prime3 format. I have highlighted the regions which needed the addition of the unit.

CC_Ryder1-VisitorAuthor
1-Visitor
October 23, 2014

Thanks, something so simple and yet trivial. I truly appreciate everyone's input, I cannot thank everyone enough.