Look at phi vs u in terms of types in the elliptic functions. It would be more consistent with ellint_3 to have phi be a scalar and u be an object.