Question 1: If I change guess to a integer, for example guess = 1
then ListPlot already stops at $n=50$. This seems strange to me, any ideas on why this happens? Update, if I change guess to guess = 1.0
then this doesn't occur. Maybe this has something to do with the loss of precision with Sin?
Question 2: Why does the ListPlot stop at $n=512$? Is there something special about the number $4^{512}$?
For reference; to see what is going on I also included the Grid.
Clear["Global`*"]
guess = 1.5;
iter = 1000;
n = Table[j, {j, 0, iter}];
y = SetPrecision[Sin[4^n guess]^2, 30];
Grid[Transpose[{n, y}], Frame -> All];
ListPlot[y]
guess=1
, you aren't even using a floating point, setting it to1.
makes it use floating point, if you use some other software likePython
you'll get used to always adding a.
after an integer. $\endgroup$4^50
$\endgroup$Sin[]
into a recurring function, afterallSin[n]=Sin[n+2Pi]
? $\endgroup$