Wednesday, July 23, 2014
Tuesday, September 3, 2013
Tuesday, July 23, 2013
Monday, July 22, 2013
Limit Cycles
This post visualizes unstable and limit cycles (alternating roles of red and purple circles) for differential equation system listed.
Wednesday, June 19, 2013
Salesman on a Circle
This is an interactive graphic to supplement the post regarding arranging integers in a circle subject to certain condtions
The integers are Locators. You can grab them and move them on the canvas.
Monday, January 7, 2013
Circles, circles everywhere
Happy New Year to all. This first post of 2013 is inspired by Indra's Pearls. The above illustrates a Mobius transformation that maps points outside a circle inside points inside a circle centred at (5,5) and radius 3. The iteration of the map for circles is illustrated.
Sunday, November 25, 2012
Sunday, October 7, 2012
Sylvester's Stamp Puzzle
The stamp puzzle for denominations 4 c and 7 c is illustrate above. The lattice points on the plane z=4x+7y are shown in black. The integer(x,y) pairs are shown in red for given z. The yellow plane (z=17) has no integer solutions in this octant. It has integer solution (-1,3). Note 28 has solutions (7,0) and (0,4) and 56: (14,0),(0,8), (7,4)...
Sunday, September 16, 2012
Monday, August 13, 2012
Complex Inversion
This post explores the relationship between the Riemann sphere representation of the extended complex plane and the complex plane. The 'north pole' is shown as a blue point. The points of the sphere are shown in red. Three points represent: z, 1/conjugate(z), 1/z. The 2D slider moves point on sphere. The black points are the stereographic projections of the points on the sphere onto the(complex) plane z=0 On the sphere the first mapping corresponds to reflection through the plane z=0. The second mapping is complex conjugation and corresponds to reflection in the plane y=0. The composite of these two reflections corresponds to an 180 degree rotation around the real axis(illustrated by the brown arc, noting the green line intersections the real axis).
Monday, July 16, 2012
Spontaneous and Fixed Singularities
This example comes from Advanced Mathematical Methods for Scientists and Engineers: Asymptotic Methods and Perturbation Theory by Bender and Orszag.
Monday, June 18, 2012
Triangles on Poincare Disk
The above CDF is uses locators to illustrate triangles in hyperbolic geometry as represented by the Poincare disk model.
The locators have not been constrained to the disk so errors arise once going outside. If someone knows how let me know. I have yet to find a way to colour the triangle.
This is a start of contemplation of this model.
Friday, May 18, 2012
Sunday, May 6, 2012
Street View
This post is courtesy of Google Maps Javascript API. It is direct copy of the script but can be customised to suit ones needs.
Monday, April 30, 2012
Saturday, March 10, 2012
Gambler's ruin
In this CDF I explore the Gambler's ruin. In the above simulation, 2 gamblers (A and B) each start with half the capital. At each game 1 unit of capital is bet by each. It is illustrated from the viewpoint of player A (player B is the complement).
100 'rounds' between player A and B with planned number of games given. Although the 'amounts' are unrealistic, it illustrates the properties. Green coloured plots are those runs of games that have not reached ruin for either gambler. Red plots have stopped. The discrete choices for probabilities and small capital values were chosen for computational (time) convenience.
The probability that gambler A is in neither of the absorbing states after the number of games was calculated using powers of the transition matrix (exploiting the sparse array structure (central band)) and initial vector based on equal entry capital of each gambler. This is compared with the frequency of green games in the simulation.
The long run probability and expectation are calculated using the formulas derived from solving the recursive relations with absorbing states as boundary conditions.
The observed frequencies count the number of red plots, the red plots in which A wins and the fraction of red plots that A wins.
Monday, March 5, 2012
Flavonoids
The heart.org have an interesting post regarding the flavonoids. This arises as the publication fraud issue with respect to Resveratol continues to reverberate in the research community.
The click on the planar molecular plot to be taken to the wikipedia entry. Hover over the image for the tooltip.
More fruit and vegetables, red wine, chocolate and nuts for all...while we wait for the evidence to come in...
Tuesday, February 28, 2012
Dropping a rock
This is a an illustrative demonstration of from the puzzle. I did this with little time. Options such as animating the rock, illustrating the effect of different densities of rock or object, e.g. floating objects and changing to assess and quantify the change are all options (a low priority on a CDF todo list).
Sunday, February 26, 2012
Local maxima in permutations
This post accompanies How many bumps?.
The CDF is the graphical illustration of the permutations of numbers to 1 to n (in this case illustrating 2,3,...,6). The average is calculated using a function that counts the local maxima in each permutation and then averages across all permutations. This quickly becomes unwieldy. The simplicity of the solution and the efficiency and beauty of the derivation provided by Professor Blitzstein is now self-evident.
It would have been nice to color the local maxima: perhaps another post.
Sunday, February 19, 2012
Network flow
This is a interactive illustration of a simple graph. The source is the left most node and the sink the right most node. The edge capacities are frame and blue The flows are frame with red text and yellow backgrounds. The subgraph highlighted in red illustrates the maximal flow.
The sliders change the capacities on the graph.