Hey everyone, so I'm trying to create a code for a circular wire carrying a current from which I can then apply the Biot-Savart law to. However, due to my lack of coding knowledge I'm stumped on how to exactly define my wire (which has a radius of 1). Below was my thought process.
theta = range(0, 2*math.pi)
r = 1.0 #Radius
x = r*math.cos(theta)
y = r*math.sin(theta)
wire = 2*math.pi*math.sqrt((x**2)+(y**2))
This may appear instantly wrong to those of you with decent coding experience. Any suggestions would be greatly appreciated! (I just need a defined circumference representing my wire but I don't know how to properly code theta to include points between 0 and 2pi)
theta = range(0, 2*math.pi)
r = 1.0 #Radius
x = r*math.cos(theta)
y = r*math.sin(theta)
wire = 2*math.pi*math.sqrt((x**2)+(y**2))
This may appear instantly wrong to those of you with decent coding experience. Any suggestions would be greatly appreciated! (I just need a defined circumference representing my wire but I don't know how to properly code theta to include points between 0 and 2pi)