implementation of magnetic field plot
debugged
out put
a