Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine the resistance of an electronic resistor from a specified list of colors
ResourceFunction["FromResistorColorCode"][colorlist] determines the resistance of an electronic resistor from the specified colorlist. | |
ResourceFunction["FromResistorColorCode"][colorlist,tolerance] determines the resistance of an electronic resistor from the specified colorlist and tolerance. |
Specify a list of colors to obtain the resistance and/or tolerance:
In[1]:= | ![]() |
Out[1]= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
A list of 4 colors is ambiguous since its not clear if the last color is part of the resistance or the tolerance:
In[4]:= | ![]() |
Out[4]= | ![]() |
Specify the tolerance color explicitly:
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
FromResistorColorCode can take the result of ResistorColorCode as an argument. To get a unique result, you may have to select which color list item you wish to use in cases where ResistorColorCode returns multiple color lists:
In[7]:= | ![]() |
Out[7]= | ![]() |
The color list must have at least 3 colors and less than 5:
In[8]:= | ![]() |
Out[8]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
Silver and gold are not a System colors so referencing them by name requires using a string:
In[10]:= | ![]() |
Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License