pub fn calculate_loaded_cg(total_moment: f64, total_weight: f64) -> Result<f64>
Calculates the loaded center of gravity from total moment and total weight. Returns an error if total weight is zero or non-finite.