Reproducible example
Example inputvin=12
r1=1000
r2=2000 Expected result Output voltage: 8 V
Formula: Vout = Vin × R2 / (R1 + R2)
Substitution: 12 × 2000 / (1000 + 2000) = 8 V
Total resistance: 3000 Ω
Divider current: 0.004 A
R1 power: 0.016 W
R2 power: 0.032 W