Utilities

API2SG

Converts a API gravity to oil specific gravity (water=1.0)

CubicSplineDifferentiate

A natural cubic spline with continuous second derivative in the interior and zero second derivative at the end points. Differentiate at point t.

CubicSplineIntegrate

A natural cubic spline with continuous second derivative in the interior and zero second derivative at the end points. Integrate up to point t.

CubicSplineIntegrateT1T2

A natural cubic spline with continuous second derivative in the interior and zero second derivative at the end points. Integrate from point t1 up to point t2.

CubicSplineInterpolate

A natural cubic spline with continuous second derivative in the interior and zero second derivative at the end points. Interpolate at point t.

SG2API

Converts a oil specific gravity to API gravity