magnetic field predicted by compass