Thanks for the link Marty.
It's talking about permanent magnets.

I'm trying to find the strength of electro magnets with my code.