I am trying to dispaly multiple graphs using scilab but it is not working at all My code is python based Python: import matplotlib.pyplot as plt import numpy as np
g = 9.81; v0 = 30; ax = 0; x0 = 0; az = -g; z0 = 0;
for i in np.linspace(0.5,9,20):
theta = i*10*np.pi/180
vx0 = v0*np.cos(theta)
vz0 = v0*np.sin(theta)
t=np.linspace(0,2*vz0/g,100)
x =vx0*t+x0
z =0.5*az*t**2+vz0*t+z0
plt.plot(x,z)
This is scilab code:
g = 9.81; v0 = 30; ax = 0; x0 = 0; az = -g; z0 = 0;
for i=0.5:9:20 t=linspace(0,2*v0*sin(i*10*%pi/180)/g,100)
x=v0*cos(i*10*%pi/180)*t+x0
z=0.5*az*t**2+v0*sin(i*10*%pi/180)*t+z0
plot(x,z)
;end
My goal is to obtain this: https://imgur.com/dlDIKNx