Python: Parallelschaltung von Widerständen mit UliEngineering berechnen
English
Deutsch
Du kannst leicht den Gesamtwiderstand einer Parallelschaltung mit der UliEngineering-Python-Bibliothek berechnen:
parallel_resistors.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *
# Gesamtwiderstand von zwei parallel geschalteten Widerständen berechnen
total = parallel_resistors("1k", "2k")
print(f"Gesamtwiderstand: {format_value(total, 'Ω')}")
# Gesamtwiderstand von drei parallel geschalteten Widerständen berechnen
total = parallel_resistors("1k", "2k", "3k")
print(f"Gesamtwiderstand: {format_value(total, 'Ω')}")Beispielausgabe
parallel_resistors_output.txt
Gesamtwiderstand: 666.7 mΩ
Gesamtwiderstand: 545.5 mΩDie Funktion parallel_resistors() akzeptiert eine beliebige Anzahl von Widerstandswerten als Argumente und berechnet den Gesamtwiderstand mit der Formel für Parallelschaltung:
Check out similar posts by category:
Electronics, 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