I was following a solved problem from the book mentioned below on the Henon map. However, even after correcting that I still get an error on execution. I am unable to find the exact cause.
Mathematica for Theoretical Physics Classical Mechanics and Nonlinear Dynamics by Gerd Baumann
Here is the code mentioned in the book.
JacobiMatrix[fun_List, vars_List] := Outer[D, fun, vars]
Clear[HenonMap]
HenonMap[{T_, W_}, α_] :=
Block[{}, {θCos[2πα] - (W - θ^2)
Sin[2πα], θ*
Sin[2πα] + (W - θ^2)Cos[2π*α]}]
JacobiMatrix[
HenonMap[{θ, W}, α], {θ, W}] // MatrixForm
JacobiMatrix[HenonMap[{θ, W}, α], {θ, W}] //
Det // Simplify
initial = Table[{i, 0, 0}, {i, 0.1, 0.84, 0.015}];
henonPlot = {};
Do[AppendTo[henonPlot,
ListPlot[NestList[HenonMap[#, 0.2114] &, initial[[k]], 255],
PlotStyle -> Hue[k/Length[initial]], Frame -> True,
AspectRatio -> 1, AxesLabel -> {"θ", "W"},
PlotRange -> {{-1, 1}, {-1, 1}}]], {k, 1, Length[initial]}]
