def test_03(self): # Mach 1, mph, 10,000 ft Value = A.mach2tas(1, speed_units='mph', altitude=10000) # truth value from NASA RP 1046 Truth = 734.58 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_02(self): # Mach .5 Value = A.mach2tas(.5, 59, speed_units='mph', temp_units='F') # truth value from NASA RP 1046 Truth = 761.22 / 2 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_01(self): # Mach 1 Value = A.mach2tas(1, 15) # truth value from NASA RP 1046 Truth = 661.48 self.assertTrue(RE(Value, Truth) <= 1e-5)
def test_03(self): # Mach 1, mph, 10,000 ft Value = A.mach2tas(1, speed_units='mph', altitude=10000) # truth value from NASA RP 1046 Truth = 734.58 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_02(self): # Mach .5 Value = A.mach2tas(.5, 59, speed_units='mph', temp_units='F') # truth value from NASA RP 1046 Truth = 761.22 / 2 self.failUnless(RE(Value, Truth) <= 1e-5)
def test_01(self): # Mach 1 Value = A.mach2tas(1, 15) # truth value from NASA RP 1046 Truth = 661.48 self.failUnless(RE(Value, Truth) <= 1e-5)