Verification check of program.
Data from BS2G199:1984 Table 4
Code: Select all
Height (ft) CAS (kts) M TAS (kts)
0 150 0.2268 150.00
0 300 0.4535 300.00
0 600 0.9071 600.00
0 875 1.3228 875.00
20000 150 0.3321 204.00
20000 300 0.6513 400.10
20000 600 1.2421 763.05
20000 875 1.8474 1134.86
40000 150 0.5134 294.47
40000 300 0.9653 553.68
40000 600 1.8294 1049.27
40000 875 2.8123 1613.03
60000 150 0.7939 455.35
60000 300 1.4260 817.88
60000 600 2.8525 1636.13
60000 800 4.0200 2305.75
80000 150 1.1757 681.14
80000 300 2.1721 1258.42
80000 500 3.6787 2131.23
100000 150 1.7377 1020.53
100000 350 3.9470 2317.98
All tests pass to the precision of the original data, except 80,000ft 150kts CAS, where the calculated TAS is 0.01 kts different.
I also inspected the code and removed an unused function which got in by mistake.
DM15L Verification against above data
Code: Select all
Height (ft) CAS (kts) CAS to M M to TAS TAS to M M to CAS
0 150 0.2268 150.00 0.2268 150.00 Pass
0 300 0.4535 300.00 0.4535 300.00 Pass
0 600 0.9071 600.00 0.9071 600.00 Pass
0 875 1.3228 875.00 1.3228 875.00 Pass
20000 150 0.3321 204.00 0.3321 150.00 Pass
20000 300 0.6513 400.10 0.6513 300.00 Pass
20000 600 1.2421 763.05 1.2421 600.00 Pass
20000 875 1.8474 1134.86 1.8474 875.00 Pass
40000 150 0.5134 294.47 0.5134 150.00 Pass
40000 300 0.9653 553.68 0.9653 300.00 Pass
40000 600 1.8294 1049.27 1.8294 600.00 Pass
40000 875 2.8123 1613.03 2.8123 875.00 Pass
60000 150 0.7939 455.35 0.7939 150.00 Pass
60000 300 1.4260 817.88 1.4260 300.00 Pass
60000 600 2.8525 1636.13 2.8525 600.00 Pass
60000 800 4.0200 2305.75 4.0200 800.00 Pass
80000 150 1.1757 681.15 1.1757 150.00 Pass
80000 300 2.1721 1258.42 2.1721 300.00 Pass
80000 500 3.6787 2131.23 3.6787 500.00 Pass
100000 150 1.7377 1020.53 1.7377 150.00 Pass
100000 350 3.9470 2317.98 3.9470 350.00 Pass