Hello.
I need help with one of my scripts. It worked yesterday, but today (with no chenge at all!) it suddenly stopped working. The mistake is "invalid syntax" at line 20.
The code is:
I need help with one of my scripts. It worked yesterday, but today (with no chenge at all!) it suddenly stopped working. The mistake is "invalid syntax" at line 20.
The code is:
from scipy import integrate import numpy as np T0=293 C=120 c=300 R=0.02 gam=1.7 lam=1.5*10**(-6) p0=60 ro=1.127 w=2*np.pi*30 X=0 tmin=0 tmax=2*np.pi/w etav = lambda x: lam*((T0+T0*(gam-1)*((p0/(ro*c)*np.cos((-w*x))/c))**(3/2))/(T0+T0*(gam-1)*((p0/(ro*c)*np.cos((-w*x))/c)+C)*p0/(ro*c)*np.cos((-w*x) setav=integrate.quad(etav,tmin,tmax) fl=lambda x: 6*np.pi*R*lam*((T0+T0*(gam-1)*((p0/(ro*c)*np.cos((2*np.pi/lam)*X-w*x))/c))**(3/2))/(T0+T0*(gam-1)*((p0/(ro*c)*np.cos((2*np.pi/lam)*X-w*x))/c)+C)*p0/(ro*c)*np.cos((2*np.pi/lam)*X-w*x) Fl= integ.quad(fl,tmin,tmax) #F=6*np.pi*R*setav print(setav) print(Fl)Thanks for answers.