what is the attraction or repulsion between magnetic poles known as?
The angle between the compass needle and geographic north is called the magnetic declination (see Earth: The magnetic field of the Earth). The repulsion or attraction between two magnetic dipoles can be viewed as the interaction of one dipole with the magnetic field produced by the other dipole. The magnetic field is not constant, but varies with the distance from the dipole.