2,790 reputation
316
bio website mathani.tumblr.com
location
age
visits member for 2 years
seen Feb 23 at 9:43

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
30
comment Importing multiple files using a for-loop
@Probabilitnator Don't agree, I think help is very helpful in Mathematica. But one has to spend some time on it. ;)
Mar
30
comment Importing multiple files using a for-loop
Also, note that Table iterator doesn't need to be an increasing integer, but it can go over a list of files. Table[Import[file, "Data"], {file, files}].
Mar
30
revised Importing multiple files using a for-loop
alternative way
Mar
30
answered Importing multiple files using a for-loop
Mar
30
comment Importing multiple files using a for-loop
Importing with Table will build the desired testList.
Mar
29
comment How to extract data from a list?
Take[#, 3] & /@ coords takes first three elements from each sublist.
Mar
29
awarded  Editor
Mar
29
revised Translating MATLAB's cell2mat into Mathematica
fixed grammar, changed var name
Mar
29
answered Translating MATLAB's cell2mat into Mathematica
Mar
29
awarded  Commentator
Mar
29
comment Translating MATLAB's cell2mat into Mathematica
Yet couldn't we legitimize this question? Is the example in Mathematica {{{1}, {2, 3, 4}}, {{{5}, {9}}, {{6, 7, 8}, {10, 11, 12}}}}? How does one turn this into normal matrix?
Mar
28
comment How to plot a parametric region representing a coordinate transformation
What does t = infinity mean here? As I understand arctan(T/X) runs merely from -1 to 1, and so t from -Pi/4 to Pi/4 ... ?
Mar
28
answered How to plot a parametric region representing a coordinate transformation
Mar
28
comment Matrix Determinant
StringTake wouldn't work for row12 for example with two digits. This would work: StringTrim[#, {"row" ~~ DigitCharacter .. ~~ "(", ")"}] & /@ s
Mar
28
answered Matrix Determinant
Mar
26
comment Placeholders for map inside a map
But extracting one column doesn't need Map. Part[list1, All, 2] extracts 2nd column, and Map[Part[list1, All, #] &, {1, 3}] both 1st and 3rd.
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.