§ How it works
Wire 1 creates a circular field at wire 2. Wire 2 carries current through that field and feels :
Parallel currents attract, antiparallel currents repel (the opposite of electric charges!). Until 2019 this was the definition of the ampere: the current that produces N/m between two infinitely long wires 1 m apart. Since the SI redefinition the ampere is fixed via the elementary charge, but remains H/m to within 10⁻¹⁰.
Assumes long, thin, straight conductors (). Use negative values to reverse a current.