# Calculating and Visualizing the Magnetic Field Due to a Long Straight Wire With Python

It seems that most of the second semester algebra-based physics is magic. Since you need calculus to derive many of the expressions, the students just get them magically instead.

NOT TODAY. Well, I hope not. Today I am going to use python and the Biot-Savart Law to find the magnetic field due to a wire. Here is the expression I want to show:

Where I is the current in a wire and r is the distance from the wire. I guess I should start with the magnetic field due…