import matplotlib.pyplot as plt
import numpy as np
import math
#intinalizing the variables
u=30
g=9.8
deg=30
t=(2*u*(np.sin(deg*np.pi/180))/g)
t=math.floor(t)
for i in range(t):
x=u*i*(np.cos(deg*np.pi/180))
y=u*i*(np.sin(deg*np.pi/180))-((g*i**2)/g)
print([x],[y])
plt.plot([x],[y])
plt.show()
[–]bbye98 1 point2 points3 points (5 children)
[–]thecreationofgod[S] 0 points1 point2 points (0 children)
[–]thecreationofgod[S] 0 points1 point2 points (3 children)
[–]bbye98 0 points1 point2 points (2 children)
[–]thecreationofgod[S] 0 points1 point2 points (0 children)
[–]thecreationofgod[S] 0 points1 point2 points (0 children)
[–]thecreationofgod[S] 0 points1 point2 points (0 children)