Hi I don’t understand how on earth we are supposed to program the get_angles() function in the Transformer Notebook because it literally says:
"Hint […] If k = [0, 1, 2, 3, 4, 5] , then, i must be i = [0, 0, 1, 1, 2, 2]", which means that ‘i’ must be 0 twice. Then plug that into the equation “theta(pos, i, d) = pos/(10000*(2i/d))” (also quoted verbatim from instructions). Then you get infinities (or NaNs) at the 0s which causes it to fail the asserts in the unit tests.
Oh I see that appears to be the root of the problem, I can tell now the (2i/d) is ever so slightly elevated but not obviously enough for me to realize it was a power.
P.S. ‘//’ is just truncated division not modulo (modulo is ‘%’)
Anyhow thanks for your answer!! No idea how long that would’ve taken me to figure out lol