Magnetometer
Magnetic fields are vector quantities characterized by both strength and direction. The strength of a magnetic field is measured in units of tesla in the SI units, and in gauss in the cgs system of units. 10,000 gauss are equal to one tesla. Measurements of the Earth's magnetic field are often quoted in units of nanotesla (nT), also called a gamma. The Earth's magnetic field can vary from 20,000 to 80,000 nT depending on location, fluctuations in the Earth's magnetic field are on the order of 100 nT, and magnetic field variations due to magnetic anomalies can be in the picotesla (pT) range. "Gaussmeters" and "teslameters" are magnetometers that measure in units of gauss or tesla, respectively. In some contexts, magnetometer is the term used for an instrument that measures fields of less than 1 millitesla (mT) and gaussmeter is used for those measuring greater than 1 mT.
Electromagnet
which says that the integral of the magnetizing field H around any closed loop of the field is equal to the sum of the current flowing through the loop. Another equation used, that gives the magnetic field due to each small segment of current, is the Biot–Savart law. Computing the magnetic field and force exerted by ferromagnetic materials is difficult for two reasons. First, because the strength of the field varies from point to point in a complicated way, particularly outside the core and in air gaps, where "fringing fields" and "leakage flux" must be considered. Second, because the magnetic field B and force are nonlinear functions of the current, depending on the nonlinear relation between B and H for the particular core material used. For precise calculations, computer programs that can produce a model of the magnetic field using the finite element method are employed.