the device being a capacitor or a resistor