CORDIC: Difference between revisions
Content added Content deleted
m (→{{header|Julia}}: cleanup) |
|||
Line 59: | Line 59: | ||
# and a table of products of reciprocal lengths of vectors [1, 2^-2j]: |
# and a table of products of reciprocal lengths of vectors [1, 2^-2j]: |
||
# Kvalues = cumprod(1./sqrt(1 + 1j*2.^(-(0:23)))) |
# Kvalues = cumprod(1./sqrt(1 + 1j*2.^(-(0:23)))) |
||
Kvalues = |
Kvalues = [ |
||
0.70710678118655, 0.63245553203368, 0.61357199107790, 0.60883391251775, |
0.70710678118655, 0.63245553203368, 0.61357199107790, 0.60883391251775, |
||
0.60764825625617, 0.60735177014130, 0.60727764409353, 0.60725911229889, |
0.60764825625617, 0.60735177014130, 0.60727764409353, 0.60725911229889, |
||
Line 65: | Line 65: | ||
0.60725294104140, 0.60725293651701, 0.60725293538591, 0.60725293510314, |
0.60725294104140, 0.60725293651701, 0.60725293538591, 0.60725293510314, |
||
0.60725293503245, 0.60725293501477, 0.60725293501035, 0.60725293500925, |
0.60725293503245, 0.60725293501477, 0.60725293501035, 0.60725293500925, |
||
0.60725293500897, 0.60725293500890, 0.60725293500889, 0.60725293500888, ] |
0.60725293500897, 0.60725293500890, 0.60725293500889, 0.60725293500888, ] |
||
Kn = Kvalues[min(iteration, length(Kvalues))] |
Kn = Kvalues[min(iteration, length(Kvalues))] |