1,355 reputation
617
bio website
location
age
visits member for 3 years
seen Mar 10 at 22:34

Dec
12
comment NDSolve and WhenEvent Causing Excess Work
@MarkMcClure don't get me wrong ... your point is well taken! It would just be nice to have an extra option that would tell the maximum steps taken between events ... that way the user doesn't need to have to do any hand calculations on the number of time steps, and the predicted number of events to figure out how many maximum steps need to be taken. This will make the calculations much slower ... but seems like it will be a common need for these types of problems. Again I think of it the way old Fortran codes would have worked ... each call you get the maximum steps so it naturally scales
Dec
12
comment NDSolve and WhenEvent Causing Excess Work
@MarkMcClure true, but for cases that happen at regular intervals (ie Mod[t,1] etc) this is slightly counter intuitive until you understand your answer. In these cases the events are easy to detect ... but the way the solver is allocating effort is subtle since it is I imagine trying to ensure that possible local discontinuities are being handled correctly.
Dec
12
accepted NDSolve and {C, K, Slot} and other built-ins as a variable name
Dec
12
comment NDSolve and WhenEvent Causing Excess Work
I see ... so since I am doing a perturbation at each time step, then that is why I am having to grow MaxSteps for longer output ... as I using up my "bank" near each event. I was thinking more like this was analogous to a Fortran solver that does integration a "step" at a time ... not considering the how the adaptive step size was working. Thanks!
Dec
12
accepted NDSolve and WhenEvent Causing Excess Work
Dec
11
asked NDSolve and WhenEvent Causing Excess Work
Dec
11
comment Implementing Position
@jVincent good catch thanks!
Dec
11
revised Implementing Position
added 6 characters in body
Dec
10
revised Implementing Position
deleted 224 characters in body
Dec
10
revised Implementing Position
added 809 characters in body
Dec
10
answered Implementing Position
Dec
10
answered NDSolve and {C, K, Slot} and other built-ins as a variable name
Dec
10
accepted How to implement FittedModel like objects
Dec
9
comment How to implement FittedModel like objects
Happy it helps! Spent a night figuring this out ... simple once you see it all together :-)
Dec
8
answered How to implement FittedModel like objects
Dec
8
comment How to implement FittedModel like objects
Okay, in the end @LeonidShifrin was right ... I do really want to understand how to use DownValues/SubValues to actually implement the type of behavior something like FittedModel has. Now I am going to try and do this on my own for a bit, but when I want to ask it ... is there a way to make it clear that this is not covered by the linked to question (which just deals with the Format/Boxes issue)?
Dec
8
comment How to implement FittedModel like objects
@LeonidShifrin thanks ... I was doing it on a variable that contained a FittedModel not on FittedModel itself. Confusion is slowly clearing. Thanks!
Dec
8
comment How to implement FittedModel like objects
@LeonidShifrin a FittedModel doesn't seem to have SubValues either ...
Dec
8
comment How to implement FittedModel like objects
nah the close is fine. I tried searching as I had vague memories of this issue. The SubValues solves the issue well enough for me. Thanks
Dec
7
comment Does Mathematica have advanced indexing?
Have you kept up with this project at all? I would be interested in seeing the github if it exists.