I'm working a small program that calculates the trajectory of an object fired on certain planetary bodies, then plots them with Turtle graphics. Currently, I'm stuck on an issue with a Type Error that I can't seem to figure out.
So, here is the stack:
Traceback (most recent call last):
File "MY FILEPATH", line 174, in <module> main()
File "MY FILEPATH", line 153, in main
x1,y1 = xtoy(dist(velo,ang,grav),velo,ang,grav,i)
File "MY FILEPATH", line 66, in xtoy
sety = int(dist*tan(ang)-(grav*dist**2)/(2*velo**2*cos*((cos(ang)))))
TypeError: unsupported operand type(s) for *: 'int' and 'builtin_function_or_method'
and here is a pastebin of the code.
I am absolutely stumped, and have been wracking my brain for a week. Any help would be truly appreciated.