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 : 03 April 2016 06:19:45(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)
X right range does not show

Forum X_Y plot.gif

Edited by moderator 20 May 2016 21:13:48(UTC)  | Reason: removed references to Maxima

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

Offline Jean Giraud  
#2 Posted : 03 April 2016 15:22:21(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)
X_Y plot does not like big numbers. It first refused the max X
with several error messages that I couldn't clear but waited
several minutes ... bingo ! Same topo for the low limit no response
error mesage ... same topo for the thick. It must have taken 10 min.

Maybe X_Y plot does not have enough fingers to count up to 1000000.

Forum Moody.gif
Offline Jean Giraud  
#3 Posted : 04 April 2016 01:21:55(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)
I don't understand why X_Y does not like stuff directly from Smath.
27 min reduced to 1.2 min... quite a big peanut !

Forum Tip X_Y Plot.gif
Offline Alex M.  
#4 Posted : 04 April 2016 01:23:54(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
I don't understand why X_Y does not like stuff directly from Smath.
27 min reduced to 1.2 min... quite a big peanut !

Forum Tip X_Y Plot.gif



Could you please post the .SM workbook? Would like to tinker around abit..
Offline mikekaganski  
#5 Posted : 04 April 2016 01:27:30(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Try replacing your Moody:=line(...) with Moody:=eval(line(...)).
Hope this helps. Is it does, then the problem is symbolic optimization, that causes re-evaluation each time a plugin needs some value.
Best regards,
Mike Kaganski
Offline mikekaganski  
#6 Posted : 04 April 2016 05:23:31(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Ok, I tried to reproduce your observations.

1. I don't understand what do you mean by the topic title "Maxima X_Y plot". AFAIK, there's only plain "X-Y Plot Region" plugin, and I don't see any Maxima usage in your posts here.

2. You didn't show the input data for the plot, but I assume you used sys(Moody[1;Moody[2;...), not just Moody, because you have four series, not one. (Not that this is wrong, just this is essential for understanding).

I see the problem you describe (I think so) in my attached file: Moody.sm (15kb) downloaded 15 time(s).

There, if I enable block with eval(), on my PC it takes just ~15 s (I take it as x1) to calculate, and plot is done ~instantly.
Without eval(), if I plot simply Moody (no 4 series), then the plot takes ~30 s [x2].
Plotting sys(Moody[1;Moody[2;...) takes ~300 s [x20].

This timing is somewhat consistent with your data (when you write to file, it takes 1.2 min (x1) - without this, it takes 22 times longer).

Yes, seems like plugin isn't optimized here, but anyway, I would expect the best possible result (using your approach without eval()) to be no better than 60 s (x4), because you use symbolic evaluated variable four times in your sys. Thus, I would DEFINITELY recommend use eval in this case.
Best regards,
Mike Kaganski
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.