odin icon indicating copy to clipboard operation
odin copied to clipboard

Allow initial(.) on the rhs

Open richfitz opened this issue 8 years ago • 2 comments

Should be possible to write things like:

deriv(x) <- exp(-(x - initial(x)^2)

given we always store the conditions. This will save having to route through a separate variable:

ix <- ...
initial(x) <- ix
deriv(x) <- exp(-(x - ix)^2)

richfitz avatar Aug 24 '16 13:08 richfitz

Also,

initial(t)

should work as we keep that too

richfitz avatar Aug 24 '16 13:08 richfitz

xref #5

richfitz avatar Mar 21 '17 14:03 richfitz