The total field along axis is calculated using the following formula: `E_z= (kQ)/L(1/(d-L/2)-1/(d+L/2))` where:
22.8 Electric field of a continuous charge distribution by Benjamin Crowell, Light and Matter licensed under the Creative Commons Attribution-ShareAlike license.