Код: Выделить всё
print("RC Circuit Calculator")Код: Выделить всё
Resistance = float(input("Resistance (R) : "))Код: Выделить всё
Capacitance = float(input("Capacitance (C) : "))Код: Выделить всё
Voltage_Source = float(input("Source Voltage (V) : "))Код: Выделить всё
t = np.array(input("Time Intervals : ").split())Код: Выделить всё
V_c = Voltage_Source*(1 - np.exp(-t/(Resistance*Capacitance)))Код: Выделить всё
print(V_c)Подробнее здесь: https://stackoverflow.com/questions/793 ... -in-python
Мобильная версия