Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Jean Giraud  
#1 Posted : 22 August 2016 03:05:22(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Animation adds live to projects.
Enjoy your vist.

Jean

0Anim Brownian.sm (9kb) downloaded 46 time(s).
0Anim Analemma.sm (29kb) downloaded 34 time(s).
0Anim Ellipse.sm (14kb) downloaded 41 time(s).
0Anim Cheval.sm (22kb) downloaded 32 time(s).
0Anim Gozilla.sm (12kb) downloaded 37 time(s).
0Anim XFR.sm (12kb) downloaded 33 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 22/08/2016(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Ber7  
#2 Posted : 22 August 2016 04:13:52(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Hi Jean
The program will run faster if the code is a little change

0Anim XFR1.sm (14kb) downloaded 28 time(s).

Edited by user 22 August 2016 04:37:12(UTC)  | Reason: Not specified

thanks 1 user thanked Ber7 for this useful post.
on 22/08/2016(UTC)
Offline Jean Giraud  
#3 Posted : 22 August 2016 06:56:24(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Ber7 for the code.

On that one "0Anim CONVOLUTION" ... can't accumulate the path ?

Cheers, Jean

0Anim CONVOLUTION.sm (19kb) downloaded 26 time(s).
Offline Ber7  
#4 Posted : 22 August 2016 09:57:54(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Instead tmin = 0 substitute the tmin=1

0Anim XFR1.sm (14kb) downloaded 27 time(s).
thanks 1 user thanked Ber7 for this useful post.
on 22/08/2016(UTC)
Offline Jean Giraud  
#5 Posted : 22 August 2016 14:52:26(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
0Anim CONVOLUTION .sm
has been doctored for the accumulated path.
Plots are difficult to size, work sheet is Autocal OFF

Jean

0Anim CONVOLUTION.sm (31kb) downloaded 26 time(s).
Offline Andrey Ivashov  
#6 Posted : 22 August 2016 18:35:58(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Thank you for interesting examples!

I've checked your worksheets and see one place for simple optimization applicable for most of them.
Often you use procedures to draw static set of points for all frames of animation. Procedures (when line is used right after the definition operator) calculated on every call - SMath Studio do not precalculate their values.

So, you can speed up calculation simply by line like this:
correction.png

This line asks the program to calculate procedure and store its values into the initial procedure variable. So, we have only one calculation of static shape for the whole animation!

I've corrected your examples according to the hint above and tested them in both versions: 0.97.5346 - the one you have used to create files and 0.98.6077 - the latest nightly build. Here are the results:
differences.png

Final versions of the worksheets:


Best regards.

Edited by user 22 August 2016 19:28:29(UTC)  | Reason: Not specified

thanks 3 users thanked Andrey Ivashov for this useful post.
on 22/08/2016(UTC),  on 22/08/2016(UTC),  on 23/08/2016(UTC)
Offline Jean Giraud  
#7 Posted : 23 August 2016 03:39:48(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Andrey: I toke good note and adapted.

Jean
Users browsing this topic
Guest
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.