title: How to find the range of my projectile motion with python?
body: <p>I'm simulating projectile motion of multiple angles with Python. This is an almost completed code except for the fact that I also need to show the range of each projectile. Any idea of how I should do it?</p>
  <pre><code>import numpy as np 
  import matplotlib.pyplot as plt 
  import math 
  
  #theta=pi/3
  V=38.5 #speed
  t=np.arange(0,19,0.1)
  
  angle = math.pi/12
  angle_list=[]
  
  while angle &lt; math.pi/2:
      x=V*np.cos(angle)*t
      y=V*np.sin(angle)*t+(0.5*-9.8*t**2)
      plt.ylim([0,80])
      plt.xlim([0,170])
      print(x,y)
      plt.plot(x,y)
      angle_list.append(rf'{np.rad2deg(angle):.0f}$\degree$')
      angle+=math.pi/12
      
  
  plt.xlabel(&quot;range&quot;)
  plt.ylabel(&quot;height&quot;)
  plt.title('Projectile Motion With Multiple Angles')
  plt.legend(angle_list)
  plt.show()
  </code></pre>
  <p>Picture of the graph:</p>
  <p><a href="https://i.stack.imgur.com/KIoP6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KIoP6.png" alt="enter image description here" /></a></p>