Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3656
| From | Iván Lazaro <gaminster@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Incredible slow Plot |
| Date | 2011-07-11 10:59 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ivel3b$88l$1@smc.vnet.net> (permalink) |
| References | <iv9etb$dg1$1@smc.vnet.net> |
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?
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Incredible slow Plot Iván Lazaro <gaminster@gmail.com> - 2011-07-09 11:43 +0000
Re: Incredible slow Plot Peter Pein <petsie@dordos.net> - 2011-07-10 09:02 +0000
Re: Incredible slow Plot Iván Lazaro <gaminster@gmail.com> - 2011-07-11 10:59 +0000
Re: Incredible slow Plot David Bailey <dave@removedbailey.co.uk> - 2011-07-12 10:59 +0000
Re: Incredible slow Plot Iván Lazaro <gaminster@gmail.com> - 2011-07-12 11:00 +0000
Re: Incredible slow Plot DrMajorBob <btreat1@austin.rr.com> - 2011-07-12 11:00 +0000
Re: Incredible slow Plot DrMajorBob <btreat1@austin.rr.com> - 2011-07-12 11:08 +0000
Re: Incredible slow Plot Iván Lazaro <gaminster@gmail.com> - 2011-07-13 07:16 +0000
csiph-web