Comment calculer la constante de temps R/C en Python avec UliEngineering
Vous pouvez facilement calculer la constante de temps R/C d’un réseau résistance-condensateur en utilisant la bibliothèque Python UliEngineering :
rc_time_constant.py
from UliEngineering.Electronics.Capacitors import *
from UliEngineering.EngineerIO import *
# Calculer la constante de temps d'une résistance de 10k et d'un condensateur de 100uF
tau = capacitor_rc_time_constant(
capacitance="100uF", resistance="10kΩ"
)
# Formater automatiquement et afficher le résultat
print(f"Constante de temps : {format_value(tau, 's')}")Exemple de sortie
rc_time_constant_output.txt
Constante de temps : 1000 msCheck out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow