View Single Post
cowmoo32
#1
Feb18-13, 06:43 PM
P: 120
This is for a computational physics class, but isn't a homework question, per se. My friend and I have two different sets of code trying to achieve the same thing and we're getting vastly different answers, orders of magnitude apart. We haven't covered this sort of problem in our intro E&M class yet so we aren't able to confirm a result by hand.

Using a λ0 value of 1e-6 and L = 0.5m I'm getting V = ~0.0995 and he's getting 10,596.

Write a Python code that computes the electrostatic potential of a finite segment of charged wire of length 2L, at a height H=L above the center of the wire. The charge density along the wire varies as λ=λ0cos[itex]\frac{Pi*x}{2L}[/itex]
Phys.Org News Partner Physics news on Phys.org
Step lightly: All-optical transistor triggered by single photon promises advances in quantum applications
The unifying framework of symmetry reveals properties of a broad range of physical systems
What time is it in the universe?