An electropermanent magnet holds 14.6 N at contact, falling to 2.34 N across a one-millimetre gap, then lets go. The starter hold_force() ignores the gap. Implement the interpolation, then compare the energy of the two ways to hold: an EPM pays 0.3 J once to switch and then holds for free, while an electromagnet burns power the entire time. The magnet you can switch is what lets a robot reconfigure its own body without spending power to stay together.
Predict firstOver one minute of holding, which costs less energy?
The EPM pays 0.3 J to switch, then holds for free; the electromagnet burns about 2 W the whole minute.