effluent.numerics¶
The module contains numerical helper functions.
Functions¶
|
Inverse bilinear interpolation |
Module Contents¶
- effluent.numerics.bilin_inv(f, g, F, G, maxiter=7, tol=1e-07)¶
Inverse bilinear interpolation
f, gshould be scalars or arrays of same shapeF, Gshould be 2D arrays of the same shape- Parameters:
f – Desired f value
g – Desired g value
F – Tabulated f values
G – Tabulated g values
maxiter – Maximum number of Newton iterations
tol – Maximum residual value
- Returns:
A tuple
(x, y)such thatF[x, y] = fandG[x, y] = g, when linearly interpolated