I believe the ellipticintegrals4.c is very close to working
working on analytical methods now