The Magnetic Field (solenoid) is found using the following formula: `B=k/c^2 4piIN"/"l`, where:
- `B` = Magnetic Field created by a long, straight wire carrying current `I`
- `k` = Coulomb's Constant
- `pi` = 3.14159265358979323846264338327950288
- `c` = relativity constant (speed of light)
- `I` = current
- `N` = number of turns of wire
- `l` = length of the solenoid
References
24.2 Calculating magnetic fields and forces by Benjamin Crowell, Light and Matter licensed under the Creative Commons Attribution-ShareAlike license.