Skip to main content
1-Visitor
November 8, 2015
Question

Mathcad Prime crashes when I use absolute or Determinant function in IF statement

  • November 8, 2015
  • 12 replies
  • 4692 views

Hello All,

My requirement is simple I want to compare two numbers and I want the maximum value in return irrespective of its sign. This is how I tried in Excel if (abs(A)>abs(b),A,B) and it worked well.

I tried the same function in Prime3.1 and it crashes every single time I used it. One more thing what I've observed is, the IF statement is working fine when I haven't used Abs function or Determinant operator  in it. The real problem arrives only when I include Abs function in it.

Someone could please help me in resolving this issue.

Thanks in advance.

Regards,

Ashok

12 replies

23-Emerald V
November 8, 2015

Ashok Varma wrote:

Hello All,

My requirement is simple I want to compare two numbers and I want the maximum value in return irrespective of its sign. This is how I tried in Excel if (abs(A)>abs(b),A,B) and it worked well.

I tried the same function in Prime3.1 and it crashes every single time I used it. One more thing what I've observed is, the IF statement is working fine when I haven't used Abs function or Determinant operator  in it. The real problem arrives only when I include Abs function in it.

Someone could please help me in resolving this issue.

Thanks in advance.

Regards,

Ashok

Could you please post a worksheet with an example of it crashing?  I don't seem to be having the same problem. Thanks,

Stuart

24-Ruby IV
November 9, 2015

Hi,

Try to turn off "Multithreading" option:

1. Go to "Calculation" tab --> "Calculation Options" button.

2. Click on the "Multithreading" button.

23-Emerald V
November 9, 2015

VladimirN. wrote:

Hi,

Try to turn off "Multithreading" option:

1. Go to "Calculation" tab --> "Calculation Options" button.

2. Click on the "Multithreading" button.

Well, turning it on crashed my Prime 3.1 after clicking Calculate a few times.  The worksheet raised an mpl% exception error for f(-1,-3), the first couple of times, then threw its teddy bears out of the cot the third time.   Unfortunately, whatever was going on prevented me from getting a screen shot using the PrtSc key on my Win 10 PC.

Stuart

24-Ruby IV
November 11, 2015

You use Win x86 or x64-bit OS?