2-tap voltage divider
Three resistors in series, two output voltages and a target total resistance.
Vin > Vout1 > Vout2 > 0. Engineering notation supported, e.g. 3.3, 500m, 30k. Rtot = R1 + R2 + R3. Set Rtot = 0 to optimize only the two output voltages.
Vout1 = Vin × (R2 + R3) / Rtot
Vout2 = Vin × R3 / Rtot
Both outputs are relative to ground. The search minimizes the sum of squared relative errors for Vout1, Vout2 and Rtot, with equal weight. With Rtot = 0, only the two voltage errors are minimized. E-series values may require a compromise. Assumes unloaded outputs.