Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Incredible slow Plot
Replies: 8   Last Post: Jul 13, 2011 2:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Iván Lazaro

Posts: 34
Registered: 6/18/07
Re: Incredible slow Plot
Posted: Jul 11, 2011 6:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi!

Yes, I tried

sol=NDSolve[{eqns, cond},f,{t,0,1200}][[1]];
Plot[Evaluate[f[t]/.sol],{t,0,1200}],

but that was a pain. Thanks to Bobby I managed to solve my speed problem:

Instead of

sol=NDSolve[{eqns, cond},f,{t,0,1200}][[1]];
Plot[Evaluate[f[t]/.sol],{t,0,1200}],

I selected the specific solutions I needed, and Set them to a variable
that then I plot:



sol=NDSolve[{eqns, cond},f,{t,0,1200}][[1]];
a=sol[[1, Something, 2]]
b=sol[[1, Something+1, 2]]

Plot[{a[t],b[t]}],{t,0,1200}],

and that was it. However I don't understand this. Was the problem the
"size" and "amount" of interpolated functions?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.