How does one measure impedance/resistance using SPICE? I have access to regular SPICE(MacSpice) and HSpice.
The DC current divider circuit at the bottom of this webpage seems to be one method. 0V DC sources are used, and the current through these zero volt sources is measured. Using the node voltage and the current measured, we can deduce resistance. Of course for circuits where we already know the resistance this is only good for measuring the current.
How can one do resistance/impedance measurements for AC circuits, such as the inputs or outputs of transistor amps (e.g. resistance looking into base, output at emitter, etc.)?