Hello, I am a 17 year old student and my physics teacher asked me to create a python program to determine the optimal angle for a javelin throw. However, I have some difficulties with the calculation of the lift force acting on the javelin. Indeed, when I draw the trajectory with my current calculations, the trajectory looks weird. I suppose there could be an error in the calculation of the lift force like a sign error or the use of a wrong trigonometric function. Thanks for your help :)
The purpose of the code below is only to plot the trajectory
And i'd like to know if the calculation of theta in the loop is correct or if I need to create an array as well
PS: English is not my first language, so I'm sorry for any spelling mistakes