pub fn absolute_pressure(
surface_pressure: f64,
fluid_density: f64,
gravitational_acceleration: f64,
depth: f64,
) -> Option<f64>Expand description
Computes absolute pressure from surface pressure and the hydrostatic contribution.
Formula: P_abs = P_surface + ρ * g * h
Returns None when surface_pressure, fluid_density, or depth is negative, when
gravitational_acceleration is not finite, or when the computed result is not finite.