Details and Options
ResourceFunction["ESeriesValues"] helps to find values or combination of values in the
E series of preferred numbers. Those logarithmically spaced number lists are used mainly as values for common electrical components like resistors, capacitors, inductors and other. The standard definitions (IEC 60063:2015) include the series E3, E6, E12, E24, E48, E96 and E192. The number of which designates the number of values included in the series. For example, E6 specifies 6 standard values: 1.0, 1.5, 2.2, 3.3, 4.7, 6.8. So any of those values times an integer exponent base 10 gives any valid E6-series value. Thus 680, 2200 or 0.47 are all members of the E6-series.
ResourceFunction["ESeriesValues"] can be used to find optimal resistor, capacitor, etc. values or optimal configurations of multiple elements given a desired target value.
ResourceFunction["ESeriesValues"] returns an E-series number when called in the one or two argument form.
ResourceFunction["ESeriesValues"] in its three argument form attempts to find the optimum combination of elements closest to the desired value.
ResourceFunction["ESeriesValues"] in the three argument form returns a list of found optimal/near-optimal solutions each containing the optimized value val, the configuration config highlighting how to set the elements with them enumerated C[1]…C[n], and a rule list which gives the the individual series values C[i]->vali.
The configuration returned by the three argument form of ResourceFunction["ESeriesValues"] is a string expression showing a parallel combination with a pipe symbol "|" or a serial combination with a plus "+" and nesting with brackets. So, for example, (C[1]|(C[2]+C[3])) shows an element C[1] being in parallel with a serial combination of elements C[2] and C[3].
ResourceFunction["ESeriesValues"] is not guaranteed to always find the global optimum, nor to always find all optimum combinations if there are more than one.
The argument series can be specified as:
| "E6" | string with an "E" prefix and a number describing the series |
| d | integer specifying the series |
| {v1,v2,…} | list describing the series |
Supported options are:
| "ExtraExponent" | 1 | how many extra exponents intervals the search depth will use |
| GenerateConditions | False | False prints only the best combinations, True returns all optimums of all possible given configurations of elements |
| "MinValue" | 10^-3 | minimum value searched for |
| "MaxValue" | 10^7 | maximum value searched for |