precompute B*(1.0/fabs(kappa)) and use, no copypaste