يمكنك بسهولة حساب التيار المتدفق عبر مقاوم باستخدام قانون أوم مع مكتبة Python UliEngineering.
آلة حاسبة عبر الإنترنت: Current through resistor calculator
current_through_resistor.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *
# Compute current through 1kΩ resistor at 5V
current = current_through_resistor("5V", "1k")
print(f"Current through 1kΩ at 5V: {format_value(current, 'A')}")
# Compute current through 100Ω resistor at 3.3V
current = current_through_resistor("3.3V", "100Ω")
print(f"Current through 100Ω at 3.3V: {format_value(current, 'A')}")مثال مخرجات
current_through_resistor_output.txt
Current through 1kΩ at 5V: 5.00 mA
Current through 100Ω at 3.3V: 33.0 mAيُحسب التيار باستخدام قانون أوم: $I = \frac{V}{R}$
منشورات ذات صلة
Check 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