* Auto-generated testbench for voltage divider: R15/R16
* Expected Vout = 3.3 * 0.180328 = 0.5951 V
* Model: ideal passives (exact, unloaded)

VIN M2_3v3 0 DC 3.3
R15 M2_3v3 FB 10k
R16 FB 0 2.2k

.control
op 
let vout_sim = v(FB)
let error_pct = abs(vout_sim - 0.5950823999999999) / 0.5950823999999999 * 100
echo "vout_sim=$&vout_sim error_pct=$&error_pct expected=0.5950823999999999" > analysis/spice_runs/voltage-divider_R15_R16.out
quit
.endc

.end
