Question: Draw a full wave rectifier. What happens if we use tunnel diode instead of normal pn junction diode in this circuit?
Implement full_wave_rectifier(samples, diode_type) to simulate the rectified output. Return one rounded voltage per input sample. For pn, output max(0, abs(v) - 0.7). For tunnel, use the specified piecewise tunnel-diode model in the solution and preserve input order.
def full_wave_rectifier(samples, diode_type):