Basseti-Earskine field calculation
Yesterday I needed code to calculate the electric fields of an elliptical two-dimensional Gaussian charge distribution. I decided to implement it in c++ using libcerf for the error function. I used the formula from the Accelerator Physics Handbook. Beware 1: using Mathematica your results will be noisy because when you create the w-of-z error function […]