Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/03/2016(UTC) Posts: 277 Was thanked: 91 time(s) in 57 post(s)
|
Hi Jean, I think it's because you've already defined the function Sym(4) at the top of sheet in the "Utilities Discrete ALLsuiteVectorize Copy.sm" My guess is that however SMath handles memory management, it may be quicker to define a variable/function the 1st time than to overwrite it with a new content. In the attached, all I've done is changed the function name and call of the first instance to "Sym1". I'm now getting comparable times between the two documents. Utilities Discrete ALLsuiteVectorize Copy [Lyles].sm (64kb) downloaded 11 time(s).Edited by user 06 November 2018 21:02:02(UTC)
| Reason: Not specified |
|
1 user thanked alyles for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: alyles Hi Jean,
I think it's because you've already defined the function Sym(4) at the top of sheet in the "Utilities Discrete ALLsuiteVectorize Copy.sm"
My guess is that however SMath handles memory management, it may be quicker to define a variable/function the 1st time than to overwrite it with a new content. In the attached, all I've done is changed the function name and call of the first instance to "Sym1". I'm now getting comparable times between the two documents. 1. Thanks alyles, confirmed. Works fine from the download [3 s] 2. Saved your version in my file, new Smath session ... back to [12 s] Conclusion: Shadow in the context. I love that Mathematica expression ... get the Sky hoke ! Cheers ... Jean Edited by moderator 06 November 2018 23:09:25(UTC)
| Reason: marked as SOLVED
|
|
|
|
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.