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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

never seen an error like this

-MFra-
21-Topaz II

never seen an error like this

Good morning everyone!
I've been using Mathcad (now M15) for decades, but I've never seen an error like this. Could it be because I only have 4GB of RAM? I'm really not sure what to do. Thanks to anyone who can give me some good advice.
Regards.

 

error.png

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:-MFra-)

So, does the error also occurs when you are just using SQM3 and/or SQM4?

Does it also occur when you use numeric evaluation?

 

I see that you are using M040 which, according to the Readme of M050 suffers from the "issue with Mathcad 15.0 M040 in handling matrices with 256 or more elements"

There is no more information about this bug and so we can't say if its an issue which occurs from time to time in specific situations or if its something which is reproducible.

I also can't say if your installation of Mathcad got broken somehow and a reinstallation would help or if its a bug immanent to M040.

I attach the Readme of M050 so you can see which bugs were fixed since M040  (there were releases M045 and M050).
If you think its worth the trouble you may try to find the installation files for M050 somewhere on the net and upgrade your installation. The license for M040 should be valid for M050 as well. Of course you have to take care to save the license file!

 

BTW, the screenshot which shows the same error using my sheet - were you using my sheet unchanged? According to the error message the error occurs in line 258, position 9, which, if I am not wrong, is just after the definition (not evaluation) of SQM3.
No idea what would cause an error at this position.

Werner_E_2-1752069496483.png

 

 

 

 

View solution in original post

10 REPLIES 10

Hi,

Try this file that does it OK.  A0 matrix is only sixteen by sixteen that can easily be accommodated in 4GB.

Advantage can be taken of Mathcad's default actions.

a) Define last element in a matrix sets aside memory for whole matrix.

b) Defining memory sets 0.0 by default in each element.

 

I do not know why the presentation of the matrix is different. 

Capture.JPG

Cheers

Terry

Hi!

I opened your file, but it gives me the same error (I don't think it's a virus, Norton says everything's fine), so what's the problem?
Defective computer?

Werner_E
25-Diamond I
(To:-MFra-)

Similar to Terry I also could not duplicate the error you experience.

My machine has more RAM than yours but I can't image that low RAM can be the cause of the problem given that the 16x16 matrix generated is really tiny and Mathcad won't take advantage of more RAM anyway.

You sure should have attached the sheet you created so we could test it - maybe its broken in some respect.

Here are some ways to create the zero-matrix and all seem to work OK in MC15 with symbolic evaluation on my side. File is attached.

Werner_E_2-1752057509488.png

 

EDIT: Just read that you experienced the same problem with Terry's file. So I assume that you will also have no success using mine.

Would be interesting if all my four functions would fail with the same error message.

My best guess is that something with your installation of Mathcad and its symbolics got broken. You may try reinstalling Mathcad. Don't forget to save your license file before you do so as I suspect that you won't be able to create a new one given that PTC has ceased support.

 

-MFra-
21-Topaz II
(To:Werner_E)

It gives me the same error:

error W.png

Hi,

A couple of things I would try.

 

Try changing the arrow after SQM1(16) etc to an equal sign so you are using  the numeric not symbolic engine?  That's the difference in presentation on my sheet.

Try deleting the program SQM1(n) and SQM1(16)= leave the other three?  Then delete SQM2(n) if that does not work etc.

 

Can you include your worksheet so we can turn it into the underlying html and investigate line number 258 position 9?

 

Cheers

Terry

Werner_E
25-Diamond I
(To:-MFra-)

Disable the evaluation of SQM1 and see if you get the same error for SQM2.

If so, disable SQM2-> as well and see if SQM3 works, etc.

This is to try if one of my four suggestions still works on your side.

 

I suspect that the error has something to do with the symbolic engine and will not occur if you use simple numeric evaluation.
Have you already tried to just numerically evaluate your function?

But I guess you have a reason for using the symbolics, don't you?

 

Another way to workaround this error (if you don't want to try a re.installation of Mathcad, as suggested above) may be to separate creation and display of the matrix. This is usually a good idea to do, especially when working with matrices.

Define M1:=SQM(16) and then evaluate the variable M1 =  or M1->

Does this work OK?

 

BTW, which maintenance release of Mathcad 15 do you use? The latest is M050 .

You can check if you go to "Help" and choose "About Mathcad...".

According to the docs there was an error in Mathcad 15 M040 (and maybe also below) which was fixed in M045:

"2879283   Fixes issue with Mathcad 15.0 M040 in handling matrices with 256 or more elements"

In the 'Readme' of MC15 M050 I also see a bug which was already fixed in M020

"2048135   Fixes an Out of Memory error for specific symbolic calculations"

But I would guess that this is snot related to your problem!?

-MFra-
21-Topaz II
(To:Werner_E)

SQM is just a little program I used to see if the error persisted outside of a worksheet of about 8 MB in which I make extensive use of matrices (in this case 20 x 20 symbolic matrices) and algebraic operations on them. When I saved the worksheet, there were no problems. When I reopened it, the matrices (20 x 20) and other data simply disappeared, and that message appeared. I've been using Mathcad 15 installed on this backup PC for a few days now, since the other PC is down, and I didn't expect to run into such a problem. But the copy of Mathcad 15 that is installed, I think is the same one I used on the other computer without this problem, or perhaps I updated it but I don't remember when. How do I fix the error indicated in document 2879283?

M040.png

 

Werner_E
25-Diamond I
(To:-MFra-)

So, does the error also occurs when you are just using SQM3 and/or SQM4?

Does it also occur when you use numeric evaluation?

 

I see that you are using M040 which, according to the Readme of M050 suffers from the "issue with Mathcad 15.0 M040 in handling matrices with 256 or more elements"

There is no more information about this bug and so we can't say if its an issue which occurs from time to time in specific situations or if its something which is reproducible.

I also can't say if your installation of Mathcad got broken somehow and a reinstallation would help or if its a bug immanent to M040.

I attach the Readme of M050 so you can see which bugs were fixed since M040  (there were releases M045 and M050).
If you think its worth the trouble you may try to find the installation files for M050 somewhere on the net and upgrade your installation. The license for M040 should be valid for M050 as well. Of course you have to take care to save the license file!

 

BTW, the screenshot which shows the same error using my sheet - were you using my sheet unchanged? According to the error message the error occurs in line 258, position 9, which, if I am not wrong, is just after the definition (not evaluation) of SQM3.
No idea what would cause an error at this position.

Werner_E_2-1752069496483.png

 

 

 

 

-MFra-
21-Topaz II
(To:Werner_E)

Nothing has changed!

error+ W.png

Operations like this tire me out terribly! Anyway, thanks, Werner. I consider your answer the right one. Regards.

 

Werner_E
25-Diamond I
(To:-MFra-)

Sad! So I guess you will have to either try a re-installation or, even better, upgrade to M050.

Announcements

Top Tags