2,493 reputation
213
bio website mathani.tumblr.com
location
age
visits member for 1 year, 1 month
seen Apr 14 at 16:16

honeycomb decay

Mathematica can save time delays between frames together with animated GIF (look for "DisplayDurations" under options of GIF format). This in turn allowed me to produce exactly 28 frames for the decay of this honeycomb with 28 cells. Modelling radioactive decay, where for example time intervals between clicks on a Geiger counter are approximately exponentially distributed, I can simulate the delays (rounded and shifted to run from t1/100-th seconds with average value (t1+t0)/100-th seconds) as:

delays[{t1_, t0_}, n_] :=
 t1 + Round[
   RandomVariate[ExponentialDistribution[1/t0], n]]

I set t1=2 here. Most browser can't present a delay of 2/100-th seconds properly. Chrome can.


Mar
26
answered Extract attribute data from an XMLElement
Mar
26
comment Generating evenly spaced points on a curve
@Szabolcs I was asking. I think now that MeshFunctions -> (#4&) samples points with a constant step for parameter, which don't make the desired arcs.
Mar
25
answered Mark selected sub-lists in the list they were selected from
Mar
25
comment Generating evenly spaced points on a curve
In terms of points being equidistant (making evenly spaced arc lengths), what does ParametricPlot3D[f[t], {t, 0, 2 Pi}, Mesh -> 20, MeshFunctions -> (#4 &)] produce differently? Because I can Cases them out there.
Mar
25
awarded  Scholar
Mar
25
accepted Equidistant points on a polyline
Mar
25
comment Equidistant points on a polyline
Basic-calculus approach, clean and tiny. Thank you. The jumping around the original point parameter values isn't noticeable in my animation -- and I can decrease the step size which diminishes the jumping, and then Take only every second, third or so point since there are probably too many for my purpose.
Mar
25
awarded  Nice Question
Mar
24
comment Equidistant points on a polyline
@bills Values, yes. Otherwise Dashing? :) Vitaliy linked to an elegant solution, will study that.
Mar
24
awarded  Supporter
Mar
24
awarded  Student
Mar
24
asked Equidistant points on a polyline
Mar
24
comment LinePlot in For loop
@mofai Cool. Some of the programming here is not very exemplary. Yet everything always has pedagogical value. :)
Mar
24
awarded  Teacher
Mar
24
answered LinePlot in For loop