[PATCH 2/2] gas model: replace Redlich-Kwong with least-square quintic
Lubomir I. Ivanov
neolit123 at gmail.com
Wed Mar 2 16:21:57 PST 2016
On 3 March 2016 at 01:56, Linus Torvalds <torvalds at linux-foundation.org> wrote:
>
> But since the public table values are in psi, if we want to keep the
> actual *functions* be something that is clearly just a direct
> least-squares conversion of the tables we have, I think we could keep
> do the polynomial in psi, and just do something like
>
> double x0 = 1.0;
> double x1 = mbar_to_psi(bar*1000);
> double x2 = x1*x1:
i was confused at first so i did them in bars.
let me know if i messed up somewhere or if you want them as PSI for
the X values.
lubomir
--
More information about the subsurface
mailing list