SMath Studio Forum
»
SMath Studio
»
Questions
»
how to improve calculation speed here?
  Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19  Was thanked: 1 time(s) in 1 post(s)
|
Hi all, 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? ts.sm (20kb) downloaded 32 time(s). ts.xmcd (61kb) downloaded 7 time(s).
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 291   Location: italy Was thanked: 103 time(s) in 87 post(s)
|
By setting the formulas with the numeric optimization option switches from 29s to 19s. Still away from your expectations sergio
|
|
|
|
  Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19  Was thanked: 1 time(s) in 1 post(s)
|
16 more equally good improvements and it is solved... Thank you Sergio
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,079  Was thanked: 889 time(s) in 717 post(s)
|
OFF topic of the speed, I don't understand your histogram. Histogram take raw data from collection, ultimately to get a PDF. Cheers ... Jean. Stat Histogram DEMO.sm (24kb) downloaded 7 time(s). Stat Histogram QUICK.sm (58kb) downloaded 7 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 12/03/2019(UTC) Posts: 19  Was thanked: 1 time(s) in 1 post(s)
|
Hi Jean, 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 (19kb) downloaded 15 time(s).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 (18kb) downloaded 10 time(s).Have a nice weekend! Johannes
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 23/03/2016(UTC) Posts: 233  Was thanked: 76 time(s) in 47 post(s)
|
This is the function I use for sampling from normal distribution. speed-lyles.sm (18kb) downloaded 15 time(s). |
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
how to improve calculation speed here?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.