Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
X right range does not show Edited by moderator 20 May 2016 21:13:48(UTC)
| Reason: removed references to Maxima
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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 !
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/03/2014(UTC) Posts: 418 Was thanked: 125 time(s) in 96 post(s)
|
Originally Posted by: Jean Giraud 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 ! Could you please post the .SM workbook? Would like to tinker around abit..
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 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 |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 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 |
|
|
|
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.