I have an axially magnetized neodymium magnet of diameter $d$ and height $h$. The material is N42. I would like to derive a formula for the pull force.
This calculator does it: https://www.kjmagnetics.com/calculator.asp
So my question is basically: what formula does this calculator use for cylindrical magnets? It is enough to consider the pull force for magnet-steel for distance=0 and N42 grade.
Thanks.