CompAero/PrandtlMeyer.py
def calc_mach_from_nu(nu: float, gamma: float) -> float:
        """ Calculates the mach number based on a prandtl meyer function value

        Args:
            nu (float): prandtl meyer function value
            gamma (float): ratio of specific heats

        Returns:
            float: mach number
        """
        if nu <= 0.0:
            return 1.0

        return brenth(PrandtlMeyer.calc_nu, 1 + 1e-9, 30, args=(gamma, nu))
 Calculates the mach number based on a prandtl meyer function value

        Args:
            nu (float): prandtl meyer function value
            gamma (float): ratio of specific heats

        Returns:
            float: mach number
        
Calculates the mach number based on a prandtl meyer function value
Calculates the mach number based on a prandtl meyer function value
def calc_mach_from_nu(nu: float, gamma: float) -> float:
        if nu <= 0.0:
            return 1.0
        return brenth(PrandtlMeyer.calc_nu, 1 + 1e-9, 30, args=(gamma, nu))
def calc_mach_from_nu ( nu : float , gamma : float ) -> float : if nu <= 0.0 : return 1.0 return brenth ( PrandtlMeyer . calc_nu , 1 + 1e-9 , 30 , args = ( gamma , nu ) )
Calculates the mach number based on a prandtl meyer function value
Calculates the mach number based on a prandtl meyer function value
""" Calculates the mach number based on a prandtl meyer function value

        Args:
            nu (float): prandtl meyer function value
            gamma (float): ratio of specific heats

        Returns:
            float: mach number
        """
None
float
nu
float
prandtl meyer function value
prandtl meyer function value
gamma
float
ratio of specific heats
ratio of specific heats