code: def get_b_wiggle(x, y, y_int):
      
      if x == 0:
          b_wiggle = 0
      else:
          b_wiggle = old_div((y_int - y), x)
      return b_wiggle
docs: returns instantaneous slope from the ratio of NRM lost to TRM gained at the ith step