Skip to main content
8-Gravel
January 28, 2025
Solved

Calculation performance

  • January 28, 2025
  • 1 reply
  • 2164 views

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?

Best answer by terryhendicott

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

1 reply

23-Emerald IV
January 28, 2025

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

 

8-Gravel
January 28, 2025

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

21-Topaz II
January 29, 2025

Hi,

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

Cheers

Terry