yep. I was trying to figure out whether it would have any impact on my code and I think it should work just fine. Now i'm wondering what the difference in use between Block[] and Module[] are though - would you have time to explain?
@halirutan would you by any chance happen to know whether having a Manipulate[] called within a function will cause a drop in performance? I'm Manipulating a Plot of InterpolatingFunctions generated by NDSolve[], am trying to figure out whether the problem is general or specific to what I'm plotting.
by calling within a function, I mean that I write it as Function[{a,b,c}, Manipulate[...]]
okay. let me work out what the real problem is and post it as a question here if necessary. it seems to be rendering the plot ten times slower though, I waas wondering whether it was due to some value being calculated repeatedly.
@VincentTjeng I have a system of 120 ODE's that are fairly large of the form Manipulate[Plot[Evaluate[NDSolve...]]] and haven't seen much decrease in performance when adjusting sliders... at least no more so than one would expect with 120+ fairly large equations.
Ah, not sure about the performance impact of Maniuplate within another function though.
well, my code is as such: Manipulate[ ListPlot[positionFunction[CoupledODESolution, timeValue, n],{timeValue, 0, tmax}]
where positionFunction is simply a small custom function i wrote to get the position of each of my particles at timeValue with n as the total number of particles
so basically I'm plotting the solution to all the ODEs at a given time, then manipulating the time.
@VincentTjeng I'm not sure, but if you do figure out how to increase performance on that front, do share. I'll do the same. I can't see a way around having to re-evaluate the NDSolve command, though...
@Ethan I, too, am fresh out of logic. Shipments are blockaded from the East and West, not sure when we'll get more... ^.^
@VincentTjeng You don't happen to know a way to only have the Plot display one or two (or any select few) of the many solutions to larger, coupled ODE systems, do you?
so how do the solutions to the system differ? AFAIK, one set of starting parameters would only lead to one (numerical) solution - or am I mistaken there?
@Ethan - sorry to be asking this, but have you tried the Math chat? This is the chat for Mathematica.
@VincentTjeng If you have slow to compute functions, use ControlActive to do the computation only when the slider is let go and display something else meaningful when dragged. Also, plotting functions are plotted twice — first with PerformanceGoal -> "Speed" and then with "Quality". To avoid this, set it to quality in your plotting command
@Ethan It sounds like in type theory, fundamental operations (addition, subtraction, etc.) are each their own distinct "type" of argumentation. However, I'm not too familiar with symbolic logic. Sorry.
I've graduated but studied physics and mathematics in university (just at the undergraduate level) with an admittedly disproportionate effort towards the applied mathematics / physics side. Employment has, of course, bolstered my concern for the applied side.
@Ethan Yes, as of late anyways ;). I suppose you could call it physical virology. Heavy emphasis on mathematical modeling, which is very on the applied side.
That's good... you just have to do that until you get good enough at it someone throws money your way for it. haha
Aye. It's a trip, lemme tell you. Makes me wish I had taken at least a few upper level chemistry and biology classes rather than almost exclusively physics, haha.
Yes, I have found some topics in biology interesting some stuff about Abiogenisis in particular, but I suppose interest in things like this is natural in any field in which the topic confronts fundamental questions, i would assume these attract lots of inexperienced/curious people, and or cranks.
I am trying to stay grounded with one field though, I guess id rather be sort of experienced in several fields rather then being a 'jack of all trades'
I'd like to visit the west coast sometime. I'm only 22, so not that old comparatively.
Usually just shows I've stuck with for awhile, Game of Thrones, Dexter, etc. that friends hooked me on long ago. Other than that, I try to tell myself I don't watch much TV.
Does anyone know why the standard Plot for Mathematica will give ticks have a constant number of digits after the decimal point but choosing a custom fit for the Ticks will not? My code is
@VincentTjeng Hi Vincent. I think those NumberForm thing (and his friends) are actually what the standard Plot used. It may look troublesome, I think that's why they hide all those things behind a simple Plot.
Hmm.. It's so annoying images hosted on i.stack.imgur.com are occasionally blocked by THE Firewall..
Ah, Friday evening. The start of a time to work on what your boss hasn't given you time to work on during the week for fear of failure... mmm, research as a non-Ph.D.
Haha, just kidding of course. Hope everyone's Friday (insert time period) is going well.
Looking to the right, my God man, a NASA rover prepared bagel would be the most delicious thing since... robot sliced bread.