machF static method

double machF(
  1. double fahrenheit
)

Implementation

static double machF(double fahrenheit) {
  double temp = fahrenheit;
  if (fahrenheit < -BallisticConstants.cDegreesFtoR) {
    // ignore: avoid_print
    print(
      'Invalid temperature: $fahrenheit°F. Adjusted to ${BallisticConstants.cLowestTempF}°F.',
    );
    temp = BallisticConstants.cLowestTempF;
  }
  return math.sqrt(temp + BallisticConstants.cDegreesFtoR) *
      BallisticConstants.cSpeedOfSoundImperial;
}