Hey everyone! I’ve spent a lot of time reading through the forum posts for the get_angles function, but unfortunately I can’t seem to find a solution to this AssertionError. If someone could give me some help or direct me to a thread where this particular error has been addressed, I would be very grateful.
There are only two tasks in this assignment.
They’re both buried in the rather confusing instructions.

Here’s what you need for the first line of code:

For the second line of code, you just implement this equation:
 For the red underlined part, that’s “angles = …”
 I recommend you use the np.power(…) function in the denominator on the righthand side.
 Cast ‘d’ so it is an np.float32(…)
Hi Tom. I seem to be doing all that you’ve said, but I am still getting the same error. My code is below. I’ll delete it once the issue is solved.
In your “angles = …” line, you have already divided by “// 2” in the previous line. Why do it again?
Also maybe try np.float32(d), as I mentioned.
2 Likes