overflow in exp, python
问题 can't really figure out why this error RuntimeWarning: overflow encountered in exp is showing up. The function I'm trying to implement is: Id = lambda t_u, yp: Is * (np.exp((Vin(t_u) - L*yp)/(n_Ut*Ut)) - 1.0) with values: Vin = lambda t: Vo * np.sin(2*np.pi*w*t) L = 50e-3 # 50 mH Vo = 5 # 5 V w = 50 # 50 Hz Is = 1e-9 # 1 nA Ut = 25e-3 # 25 mV n_Ut = 1.0 The function Id is part of a ODE that I'm trying to solve with Runge-Kutta-Method. EDIT: Methoden\Serien\6>python circuit.py Traceback (most