Function gsw::volume::ct_maxdensity
source · pub fn ct_maxdensity(sa: f64, p: f64) -> Result<f64>
Expand description
Conservative Temperature of maximum density of seawater (75-term polynomial approximation)
Example
use gsw::volume::ct_maxdensity;
let ct = ct_maxdensity(32.0, 100.0).unwrap();
assert!((ct - (-3.337428439202098)).abs() <= f64::EPSILON);
Notes
- After three iterations of this modified Newton-Raphson (McDougall and Wotherspoon, 2012) iteration, the error in CT_maxdensity is typically no larger than 1x10^-15 degress C.