You can see I’ve commented out line 21: d = (math.cos^2(angle))
When I try to run it I get the error >> int is not callable<<
which confuses me as it’s not an integer?
also on line 24 when I try to run that line I get the error >>TypeError: unsupported operand type(s) for ^: ‘float’ and ‘int’<<
but the line before does the exact same thing and works fine!
Just to clarify, it’s the same thing. Mathematically, sin²(x) = sin(x)². However, sin(x)² is not the same as sin(x²). Hopefully that makes things a little clearer.