effluent.numerics ================= .. py:module:: effluent.numerics .. autoapi-nested-parse:: The module contains numerical helper functions. Functions --------- .. autoapisummary:: effluent.numerics.bilin_inv Module Contents --------------- .. py:function:: bilin_inv(f, g, F, G, maxiter=7, tol=1e-07) Inverse bilinear interpolation ``f, g`` should be scalars or arrays of same shape ``F, G`` should be 2D arrays of the same shape :param f: Desired f value :param g: Desired g value :param F: Tabulated f values :param G: Tabulated g values :param maxiter: Maximum number of Newton iterations :param tol: Maximum residual value :return: A tuple ``(x, y)`` such that ``F[x, y] = f`` and ``G[x, y] = g``, when linearly interpolated