Skip to main content
8-Gravel
Jan 28, 2025 6:08 PM UTC
Solved

Calculation performance

Hi,

I have a Mathcad sheet that calculates a 13X3 matrice and then returns a 13X(3^13) matrice. It is a lot of calculations. I have a HP computer with Intel I7 processor and 64Mb RAM. Task manager say it uses about 10-12% of processor and 3-5MB of memory. So far it´s been working on this for about four hours, and it´s not finnished. 

 

What is missing to make the calculation go faster? Are there any parameters that I can change in Mathcad so it uses more power?

terryhendicott
21-Topaz II
Jan 29, 2025 12:01 PM UTC

Hi,

Filled out all the ones and with the two changes defining large matrices to full size get 25 seconds

Capture.JPG

Capture2.JPG

Capture3.JPG

Trick is to calculate the size of Combos before hand

11 replies

23-Emerald V
Jan 28, 2025 9:58 PM UTC

Your resulting matrix will contain

LucMeekes_0-1738101081054.png

elements, assuming they are reals, no complex values that will take up

LucMeekes_1-1738101136230.png

bytes, or

LucMeekes_2-1738101161074.png

MB of RAM, With 64 MB, your PC doesn't even have half of that amount (although I doubt that a PC with an I7 processor only has 64 MB of RAM, Prime 10 alone takes up a good 140 MB, so you couldn't even run it.).

The speed of your calculation will depend on how the result array is created. Without further information on the algorithm, there's little to say about what you could do to speed it up.

 

Success!
Luc

 

Translate
8-Gravel
Jan 28, 2025 10:08 PM UTC

My bad, offcourse it shall be 64GB. And yes they are reals. 

Translate
terryhendicott
21-Topaz II
Jan 29, 2025 4:01 AM UTC

Hi,

Could you enclose the worksheet then more guidance can be given to speed it up.

Cheers

Terry

 

Translate