Compressible Flow Subroutine Library
Programming Reference Manual
Version 1.0 DD-00008-010E

3.4.2 armcrc - Critical mach number given Cp
double armcrc(double g, double cp, int *ierr);

Compute given the critical mach number given Cp .

Performance
Iterative

Arguments

G - REAL

ENTRY: Specific heat constant γ .

CP - REAL

ENTRY: Critical pressure coefficent C
  p .

IERR - INTEGER

EXIT: (optional) Return status code.

Status codes

-1

Specific heat ratio γ≤ 1  .

-2

Given Cp out of range.

-3

Iterative solver failed.

Return Value
Critical mach number Mcrit   or NAN on error.