pub fn mach_from_pm_angle<F: Float>(pm_angle: F, gamma: F) -> FExpand description
Mach number for a given Prandtl-Meyer angle in radians.
This function uses Newton’s method to solve for the Mach number. If this
function must be called many times, it may be preferable to make a look up
table with mach_to_pm_angle and interpolate those values.
§Examples
use comp_flow::mach_from_pm_angle;
assert_eq!(mach_from_pm_angle(0.4604136818474_f32, 1.4_f32), 2.0);
assert_eq!(mach_from_pm_angle(0.0_f64, 1.4_f64), 1.00000022981460310);