Cody

Problem 45411. Compute the missing quantity among P, V, T for an ideal gas

Solution 2186164

Submitted on 1 Apr 2020 by Anupam Agarwal
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(idealgas([233424.06 NaN 435.02]),'1.55 m^3'))

y = '1.55 m^3'

2   Pass
assert(isequal(idealgas([294119.71 NaN 317.25]),'0.90 m^3'))

y = '0.90 m^3'

3   Pass
assert(isequal(idealgas([173530.58 2.85 NaN]),'594.85 K'))

y = '594.85 K'

4   Pass
assert(isequal(idealgas([NaN 4.49 410.36]),'75985.15 Pa'))

y = '75985.15 Pa'

5   Pass
assert(isequal(idealgas([228388.12 5.36 NaN]),'1472.41 K'))

y = '1472.41 K'

6   Pass
assert(isequal(idealgas([120121.26 NaN 347.47]),'2.40 m^3'))

y = '2.40 m^3'

7   Pass
assert(isequal(idealgas([NaN 4.65 320.97]),'57388.06 Pa'))

y = '57388.06 Pa'

8   Pass
assert(isequal(idealgas([256885.58 3.62 NaN]),'1118.51 K'))

y = '1118.51 K'

9   Pass
assert(isequal(idealgas([186497.00 NaN 451.62]),'2.01 m^3'))

y = '2.01 m^3'

10   Pass
assert(isequal(idealgas([NaN 1.99 486.75]),'203358.77 Pa'))

y = '203358.77 Pa'

11   Pass
assert(isequal(idealgas([153235.77 8.18 NaN]),'1507.66 K'))

y = '1507.66 K'

12   Pass
assert(isequal(idealgas([179201.35 3.46 NaN]),'745.77 K'))

y = '745.77 K'

13   Pass
assert(isequal(idealgas([NaN 5.07 421.97]),'69196.42 Pa'))

y = '69196.42 Pa'

14   Pass
assert(isequal(idealgas([NaN 7.95 439.29]),'45940.34 Pa'))

y = '45940.34 Pa'

15   Pass
assert(isequal(idealgas([126030.29 NaN 301.56]),'1.99 m^3'))

y = '1.99 m^3'

16   Pass
assert(isequal(idealgas([NaN 7.51 406.24]),'44973.09 Pa'))

y = '44973.09 Pa'

17   Pass
assert(isequal(idealgas([NaN 2.14 326.86]),'126986.64 Pa'))

y = '126986.64 Pa'

18   Pass
assert(isequal(idealgas([NaN 2.51 339.25]),'112371.49 Pa'))

y = '112371.49 Pa'

19   Pass
assert(isequal(idealgas([163285.80 2.96 NaN]),'581.34 K'))

y = '581.34 K'

20   Pass
assert(isequal(idealgas([NaN 6.00 336.89]),'46681.72 Pa'))

y = '46681.72 Pa'

21   Pass
assert(isequal(idealgas([115469.36 NaN 441.34]),'3.18 m^3'))

y = '3.18 m^3'

22   Pass
assert(isequal(idealgas([162685.80 2.50 NaN]),'489.19 K'))

y = '489.19 K'

23   Pass
assert(isequal(idealgas([NaN 3.32 379.36]),'94999.97 Pa'))

y = '94999.97 Pa'

24   Pass
assert(isequal(idealgas([236819.21 NaN 496.57]),'1.74 m^3'))

y = '1.74 m^3'

25   Pass
assert(isequal(idealgas([NaN 2.39 376.27]),'130891.58 Pa'))

y = '130891.58 Pa'

26   Pass
assert(isequal(idealgas([251622.49 8.84 NaN]),'2675.42 K'))

y = '2675.42 K'

27   Pass
assert(isequal(idealgas([158829.73 NaN 466.48]),'2.44 m^3'))

y = '2.44 m^3'

28   Pass
assert(isequal(idealgas([167062.27 NaN 390.52]),'1.94 m^3'))

y = '1.94 m^3'

29   Pass
assert(isequal(idealgas([171921.26 NaN 448.51]),'2.17 m^3'))

y = '2.17 m^3'

30   Pass
assert(isequal(idealgas([NaN 2.12 304.89]),'119568.65 Pa'))

y = '119568.65 Pa'

31   Pass
assert(isequal(idealgas([163504.12 6.88 NaN]),'1353.03 K'))

y = '1353.03 K'

32   Pass
assert(isequal(idealgas([191577.27 3.16 NaN]),'728.15 K'))

y = '728.15 K'

33   Pass
assert(isequal(idealgas([248129.61 7.69 NaN]),'2295.06 K'))

y = '2295.06 K'

34   Pass
assert(isequal(idealgas([192652.12 2.91 NaN]),'674.31 K'))

y = '674.31 K'

35   Pass
assert(isequal(idealgas([135001.95 2.47 NaN]),'401.08 K'))

y = '401.08 K'

36   Pass
assert(isequal(idealgas([203311.64 7.32 NaN]),'1790.04 K'))

y = '1790.04 K'

37   Pass
assert(isequal(idealgas([208176.82 7.12 NaN]),'1782.80 K'))

y = '1782.80 K'

38   Pass
assert(isequal(idealgas([NaN 2.08 405.01]),'161887.17 Pa'))

y = '161887.17 Pa'

39   Pass
assert(isequal(idealgas([NaN 4.59 383.02]),'69377.52 Pa'))

y = '69377.52 Pa'

40   Pass
assert(isequal(idealgas([151077.35 NaN 484.74]),'2.67 m^3'))

y = '2.67 m^3'

41   Pass
assert(isequal(idealgas([286522.71 2.47 NaN]),'851.23 K'))

y = '851.23 K'

42   Pass
assert(isequal(idealgas([215478.84 4.96 NaN]),'1285.51 K'))

y = '1285.51 K'

43   Pass
assert(isequal(idealgas([145733.90 1.58 NaN]),'276.95 K'))

y = '276.95 K'

44   Pass
assert(isequal(idealgas([243042.50 NaN 383.81]),'1.31 m^3'))

y = '1.31 m^3'

45   Pass
assert(isequal(idealgas([263228.02 3.86 NaN]),'1222.11 K'))

y = '1222.11 K'

46   Pass
assert(isequal(idealgas([270452.78 5.55 NaN]),'1805.40 K'))

y = '1805.40 K'

47   Pass
assert(isequal(idealgas([188792.83 NaN 473.35]),'2.08 m^3'))

y = '2.08 m^3'

48   Pass
assert(isequal(idealgas([171014.73 NaN 344.83]),'1.68 m^3'))

y = '1.68 m^3'

49   Pass
assert(isequal(idealgas([NaN 4.49 328.44]),'60816.26 Pa'))

y = '60816.26 Pa'

50   Pass
assert(isequal(idealgas([184222.45 NaN 445.16]),'2.01 m^3'))

y = '2.01 m^3'

51   Pass
assert(isequal(idealgas([NaN 7.61 414.21]),'45252.85 Pa'))

y = '45252.85 Pa'

52   Pass
assert(isequal(idealgas([NaN 3.39 484.92]),'118926.99 Pa'))

y = '118926.99 Pa'

53   Pass
assert(isequal(idealgas([NaN 1.79 428.02]),'198802.14 Pa'))

y = '198802.14 Pa'

54   Pass
assert(isequal(idealgas([109010.22 NaN 369.49]),'2.82 m^3'))

y = '2.82 m^3'

55   Pass
assert(isequal(idealgas([176773.72 6.65 NaN]),'1413.93 K'))

y = '1413.93 K'

56   Pass
assert(isequal(idealgas([260111.73 NaN 462.62]),'1.48 m^3'))

y = '1.48 m^3'

57   Pass
assert(isequal(idealgas([NaN 6.18 406.01]),'54620.83 Pa'))

y = '54620.83 Pa'

58   Pass
assert(isequal(idealgas([149725.79 5.06 NaN]),'911.25 K'))

y = '911.25 K'

59   Pass
assert(isequal(idealgas([NaN 1.27 407.13]),'266525.89 Pa'))

y = '266525.89 Pa'

60   Pass
assert(isequal(idealgas([260418.29 9.90 NaN]),'3100.96 K'))

y = '3100.96 K'

61   Pass
assert(isequal(idealgas([103635.51 NaN 456.75]),'3.66 m^3'))

y = '3.66 m^3'

62   Pass
assert(isequal(idealgas([NaN 9.09 425.19]),'38889.22 Pa'))

y = '38889.22 Pa'

63   Pass
assert(isequal(idealgas([NaN 2.64 308.36]),'97110.04 Pa'))

y = '97110.04 Pa'

64   Pass
assert(isequal(idealgas([223288.70 NaN 370.89]),'1.38 m^3'))

y = '1.38 m^3'

65   Pass
assert(isequal(idealgas([296869.88 9.51 NaN]),'3395.76 K'))

y = '3395.76 K'

66   Pass
assert(isequal(idealgas([NaN 4.03 432.48]),'89221.80 Pa'))

y = '89221.80 Pa'

67   Pass
assert(isequal(idealgas([159101.45 NaN 405.57]),'2.12 m^3'))

y = '2.12 m^3'

68   Pass
assert(isequal(idealgas([220527.64 NaN 416.71]),'1.57 m^3'))

y = '1.57 m^3'

69   Pass
assert(isequal(idealgas([216714.12 5.61 NaN]),'1462.31 K'))

y = '1462.31 K'

70   Pass
assert(isequal(idealgas([299231.22 NaN 494.25]),'1.37 m^3'))

y = '1.37 m^3'

71   Pass
assert(isequal(idealgas([NaN 5.09 382.69]),'62508.54 Pa'))

y = '62508.54 Pa'

72   Pass
assert(isequal(idealgas([125130.92 3.78 NaN]),'568.91 K'))

y = '568.91 K'

73   Pass
assert(isequal(idealgas([238757.52 1.09 NaN]),'313.02 K'))

y = '313.02 K'

74   Pass
assert(isequal(idealgas([254190.84 1.38 NaN]),'421.92 K'))

y = '421.92 K'

75   Pass
assert(isequal(idealgas([245902.61 3.02 NaN]),'893.22 K'))

y = '893.22 K'

76   Pass
assert(isequal(idealgas([NaN 6.61 347.29]),'43681.83 Pa'))

y = '43681.83 Pa'

77   Pass
assert(isequal(idealgas([NaN 7.90 486.90]),'51241.60 Pa'))

y = '51241.60 Pa'

78   Pass
assert(isequal(idealgas([NaN 1.89 397.95]),'175055.89 Pa'))

y = '175055.89 Pa'

79   Pass
assert(isequal(idealgas([279178.31 NaN 308.83]),'0.92 m^3'))

y = '0.92 m^3'

80   Pass
assert(isequal(idealgas([254499.01 NaN 335.80]),'1.10 m^3'))

y = '1.10 m^3'

81   Pass
assert(isequal(idealgas([142029.13 NaN 481.27]),'2.82 m^3'))

y = '2.82 m^3'

82   Pass
assert(isequal(idealgas([120306.78 NaN 310.92]),'2.15 m^3'))

y = '2.15 m^3'

83   Pass
assert(isequal(idealgas([186344.23 NaN 462.32]),'2.06 m^3'))

y = '2.06 m^3'

84   Pass
assert(isequal(idealgas([278889.55 2.24 NaN]),'751.40 K'))

y = '751.40 K'

85   Pass
assert(isequal(idealgas([283498.77 NaN 423.67]),'1.24 m^3'))

y = '1.24 m^3'

86   Pass
assert(isequal(idealgas([287205.47 NaN 446.12]),'1.29 m^3'))

y = '1.29 m^3'

87   Pass
assert(isequal(idealgas([266630.40 4.58 NaN]),'1468.81 K'))

y = '1468.81 K'

88   Pass
assert(isequal(idealgas([164492.08 NaN 495.83]),'2.51 m^3'))

y = '2.51 m^3'

89   Pass
assert(isequal(idealgas([166084.72 6.58 NaN]),'1314.45 K'))

y = '1314.45 K'

90   Pass
assert(isequal(idealgas([182780.15 5.43 NaN]),'1193.76 K'))

y = '1193.76 K'

91   Pass
assert(isequal(idealgas([165550.99 8.54 NaN]),'1700.51 K'))

y = '1700.51 K'

92   Pass
assert(isequal(idealgas([NaN 4.21 432.53]),'85416.97 Pa'))

y = '85416.97 Pa'

93   Pass
assert(isequal(idealgas([146076.61 NaN 424.91]),'2.42 m^3'))

y = '2.42 m^3'

94   Pass
assert(isequal(idealgas([232087.59 NaN 369.76]),'1.32 m^3'))

y = '1.32 m^3'

95   Pass
assert(isequal(idealgas([NaN 7.44 471.24]),'52659.80 Pa'))

y = '52659.80 Pa'

96   Pass
assert(isequal(idealgas([NaN 2.24 467.34]),'173458.25 Pa'))

y = '173458.25 Pa'

97   Pass
assert(isequal(idealgas([217641.88 NaN 461.35]),'1.76 m^3'))

y = '1.76 m^3'

98   Pass
assert(isequal(idealgas([197918.87 NaN 370.63]),'1.56 m^3'))

y = '1.56 m^3'

99   Pass
assert(isequal(idealgas([NaN 1.38 494.59]),'297972.56 Pa'))

y = '297972.56 Pa'