calculateDividerBase(ratio, tolerance, series)

import electronics.resistors.dividers-1

Calculate resistor divider with real resistor values.

import electronics.resistors.dividers-1;
calculateDividerBase(2V/5V)
ratioThe desired division ratio.
toleranceThe maximal allowed tolerance of the divider (optional). If not given, 1% will be used.
seriesThe resistor series to use (optional). If not given, E24 is used.
return valueArray of realisable resistor dividers.

The function accepts the desired ratio, the maximal allowed tolerance, and the resistor series to use. Based on that, it returns a list of all possible resistor combinations resulting in the desired division ration. It is important however, that one of the resistors is always in given in Ohms: $$ 1Ohm < R_i < 10Ohm $$

If you want to calculate a divider the impedance of which is close to desired, plase use calculateDividerByRatio.

The result is a list of structures containing the following values:

For more details on resistor series, please see electronics.datasets.resistors.series-1.