while using cordic algorithm in rotation mode ,initial vector is (x,y) position .can we calcultate the final vector position (Xn,Yn) after 5 iterations.
because i tried manually to rotate (1,0) rotating for 45 deg, after 5 iterations i got (1.63,1.65).
but actually trignometic value after rotation is (0.7,0.7)
Your result looks okay to me. In CORDIC, there is a growth factor because the rotations are not unit norm. Under a normal implementation, you should be able to see that the overall growth will be:
after N iterations. As N gets larger, that value approaches approximately 1.647... which is pretty close to what you got. There may or may not be an extra factor of √2, depending on how you handle the first iteration.