The function TandBtoR calculates the expected R  value corresponding to a particular T and B. This function is useful when updating the setpoint of a temperature controller  that is in ohms. Regular updates as a  function of magnetic field  provide a way to maintain a constant real temperature during field sweeps.