Homework Statement
How do I calculate the magnetic field of an irregularly shaped permanent magnet?
Homework Equations
Field of a magnetic point dipole:
\vec{B}(\vec{m},\vec{r}) = \frac{(\vec{m}.\vec{r})\vec{r}-\vec{m}\left\|\vec{r}\right\|^{2}}{\left\|\vec{r}\right\|^{5}}
where
\vec{m}...