A simple C library to calculate resistance and power.