Method 1: Equal distance method (Tan A and Tan B positions)
In this method, use the first magnet at a fixed distance from DMM, to calculate the magnetic field. Now replace the first magnet with second magnet, is fixed at the same distance to calculate the magnetic field. The ratio of the magnetic fields expressed from the tangent law,
Method 2: Null method (Tan A and Tan B positions)
In this method magnetic field due to first magnet (B1) is balanced or nullified by the magnetic filed due to second magnet (B2). That is,