Function gsw::volume::enthalpy_diff
source · pub fn enthalpy_diff(
sa: f64,
ct: f64,
p_shallow: f64,
p_deep: f64
) -> Result<f64>
Expand description
Difference of enthalpy between two pressures (75-term polynomial approximation)
Arguments
sa
: Absolute Salinity [ g kg-1 ]ct
: Conservative Temperature (ITS-90) [ deg C ]p_shallow
: Upper sea pressure [ dbar ] (i.e. absolute pressure - 10.1325 dbar)p_deep
: Lower sea pressure [ dbar ] (i.e. absolute pressure - 10.1325 dbar)
Example:
use gsw::volume::enthalpy_diff;
let h_diff = enthalpy_diff(33.0, 10.0, 0.0, 100.0).unwrap();
assert!((h_diff - 975.1311809188919).abs() <= f64::EPSILON);