how to improve calculation speed here? - Сообщения
I have two files here, one in smath, one in mathcad.
The mathcad file is calculated about 1000 times faster, does anyone have a tip how to speed up the .sm file?
Файл не найден. Файл не найден.
sergio
Thank you Sergio
Histogram take raw data from collection, ultimately to get a PDF.
Cheers ... Jean.
Stat Histogram DEMO.sm (23 КиБ) скачан 33 раз(а).
Stat Histogram QUICK.sm (57 КиБ) скачан 35 раз(а).
Sorry for the delay, unfortunately I found no time...
I have attached my histogram again, revised it a bit and commented it.
Actually I think it does exactly what it should, but I have to admit
that I don't know the exact definition of a histogram 8)
Histogram_JP.sm (18 КиБ) скачан 42 раз(а).
And again about the speed: I played a little with my definition of "rnorm"
and come to the strange result that my vector is calculated fastest when
I calculate it in pieces of 20 elements.
I would be happy if a more experienced user could explain this to me.
speed.sm (17 КиБ) скачан 40 раз(а).
Have a nice weekend!
Johannes
speed-lyles.sm (17 КиБ) скачан 46 раз(а).
I am new here, and facing similar problems. I intend to replace MathCad to an alternative solution due to PTC's pricing and support policy. I was very happy to find SMATH, and I started to test it. For short calculations it's a good alternative, but it seems very-very slow when long iterations are needed. I made a short loop both in Mcad and Smath containing just a few multiplications, and calculating it 1000000 times took ~0.2s for Mcad14, ~1s for Mcad8, and 32s for SMATH. So now I am a bit upset...
Sometimes the are improvements to be made in how algorithms are structured.
WroteFor short calculations it's a good alternative, but it seems very-very slow when long iterations are needed.
In some instances, Smath is slightly faster than Mathcad 11.
However, almost not observable.
In other instances, Smath is horribly slow.
1 min Julia in Mathcad takes over 2 hrs in Smath
Same observation Fourier CoC ... and more.
Please, attach your document for Smath Community to doctor.
Jean
WroteI have attached my histogram again, revised it a bit and commented it.
Actually I think it does exactly what it should, but I have to admit
that I don't know the exact definition of a histogram 8)
Your document does not open 'incorrect format'
Visit Wikipedia for Histogram.
Jean
This is the file I made exclusively for speed check. There is no need to improve this calc by modifying it's structure, it is just for test purposes not a real task.
I started to use Mathcad in the last century (V6.0).

WroteI made several calculations for example to simulate transient temperature rise of electrical rotating machines.
Attach your experimental data set.
Jean
Wroteit is just for test purposes not a real task.
And speed of your test code fails under SMath drastically.
But we all know these issues. For huge iterations SMath is not useful.
Anyone who plans to use this software should know this, SMath is a one-man show.
There are no paid programmers who can give all their time to SMath.
Only a handful of developers are included in writing and enhancing the code.
And they are doing this in their spare time, without any charge.
Maybe Andrey improve iteration speeds in future, who knows.
We can request something, it is up to Andrey include or improve that.
It is what it is, a free software which gives us mathcad interface.
Reagrds
Yes, sure. I installed SMath 3 days ago, and now I am checking it's usability for my tasks.
And many respect to Andrey! In the last few days I also found many points where SMath is superior to MathCad.
Wrotespeedtest.sm (4 КиБ) скачан 36 раз(а).
This is the file I made exclusively for speed check. There is no need to improve this calc by modifying it's structure, it is just for test purposes not a real task.
I started to use Mathcad in the last century (V6.0).I made several calculations for example to simulate transient temperature rise of electrical rotating machines. I know there are better tools but I am familiar with MathCad that's why I am looking for a similar sw.
Just for demonstration purposes, I've been able to increase the speed of this calc ~25% on my machine just by using vectorization rather than the for loop. It's still not near the performance you'd like, but just goes to show there are often things to be done to improve calculation speed. Vectorization isn't always possible in some algorithms, but when it is, it's generally faster.
speedtest.pdf (35 КиБ) скачан 38 раз(а).
speedtest.sm (8 КиБ) скачан 32 раз(а).
WroteIn the last few days I also found many points where SMath is superior to MathCad.
You can't be more correct.
SMath may be behind than MathCad speed-wise.
But in terms of usability, features, visual aspects SMath is way better.
Just plugin support is a huge plus single alone.
-
Новые сообщения
-
Нет новых сообщений