Compute the inductance of a wire via Neumann integrals for self and mutual inductance [1].
I also included an implemention to generate Bezier curve to describe any wire shape (depends on the order). To read more on Bezier curves check [2].
[1] C. Paul, Inductance: Loop and Partial, ser. Wiley - IEEE.Wiley, 2011.
[2] Pomax, “A Primer on Bézier Curves”, https://pomax.github.io/bezierinfo/