How to compute diode small-signal resistance in Python using UliEngineering

You can easily compute the small-signal resistance of a diode using the UliEngineering Python library:

shockley_diode_small_signal_resistance.py
from UliEngineering.Electronics.Diode import *
from UliEngineering.EngineerIO import *

resistance = shockley_diode_small_signal_resistance(current="1mA")
print(f"Small-signal resistance: {format_value(resistance, 'Ω')}")

Example output

shockley_diode_small_signal_resistance_output.txt
Small-signal resistance: 25.7 Ω

Check out similar posts by category: Electronics, Python