Computational physics 8.7: A glimpse of chaos
Push a damped pendulum hard and its swing turns wild. Start it twice, a millionth of a radian apart, and watch the two runs part: chaos, where a tiny difference grows until the two have nothing inโฆ
153 posts match
Push a damped pendulum hard and its swing turns wild. Start it twice, a millionth of a radian apart, and watch the two runs part: chaos, where a tiny difference grows until the two have nothing inโฆ
Mixed questions from unit 8: a spring stepped with EulerโCromer, the period from a simulation, a pendulum at small and large angles, damping, a driven spring and its resonance curve, and chaos. Newโฆ
An optional extra. Put the gap between lesson 8.7's two pendulums on a log scale and it becomes a straight line, until it levels off. Its slope, read off with rise over run, is the Lyapunovโฆ
Half the range uses only two of your readings. The standard deviation uses every one: the typical distance of a reading from the mean. Work it out step by step with arrays, then in one word withโฆ
Make readings that scatter like real ones with NumPy's random numbers: a centre, a spread and how many. Check that their standard deviation is the spread you asked for, and learn why every programโฆ
The mean of many readings is surer than any one of them. Repeat a simulated experiment 200 times and see how much its mean scatters: s รท โN. Then give a result as mean ยฑ s/โN, and work out how manyโฆ
Measured points never lie exactly on a line. Measure how far a line misses them with residuals, add up their squares, and find the line that makes that sum smallest: least squares, by formula andโฆ
np.polyfit draws a line through any points, even ones that curve. Plot the residuals: scattered at random means the line fits; a pattern means it doesn't. Then straighten a falling ball's data byโฆ
Test a fit where you know the answer: simulate a drop experiment with g = 9.81 m/sยฒ and random errors, and see whether the fit gives 9.81 back. Repeat it 200 times to see how sure one experiment's gโฆ