Cody

# Problem 45396. Design a tubesheet for shell-and-tube heat exchangers

Solution 2929765

Submitted on 9 Sep 2020 by Jimmy Sølvsteen Nielsen
• Size: 39
• This is the leading solution.
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(tubesheet(17.89),216))

2   Pass
assert(isequal(tubesheet(17.88),208))

3   Pass
assert(isequal(tubesheet(7.82),32))

4   Pass
assert(isequal(tubesheet(12.32),96))

5   Pass
assert(isequal(tubesheet(19.79),264))

6   Pass
assert(isequal(tubesheet(19.99),268))

7   Pass
assert(isequal(tubesheet(20.00),276))

8   Pass
assert(isequal(tubesheet(6.33),24))

9   Pass
assert(isequal(tubesheet(29.77),640))

10   Pass
assert(isequal(tubesheet(11.18),76))

11   Pass
assert(isequal(tubesheet(15.76),164))

12   Pass
assert(isequal(tubesheet(24.08),392))

13   Pass
assert(isequal(tubesheet(12.29),96))

14   Pass
assert(isequal(tubesheet(42.37),1320))

15   Pass
assert(isequal(tubesheet(10.54),68))

16   Pass
assert(isequal(tubesheet(12.07),88))

17   Pass
assert(isequal(tubesheet(9.36),52))

18   Pass
assert(isequal(tubesheet(12.16),88))

19   Pass
assert(isequal(tubesheet(22.35),340))

20   Pass
assert(isequal(tubesheet(16.24),180))

21   Pass
assert(isequal(tubesheet(46.25),1592))

22   Pass
assert(isequal(tubesheet(22.08),332))

23   Pass
assert(isequal(tubesheet(10.06),60))

24   Pass
assert(isequal(tubesheet(45.34),1520))

25   Pass
assert(isequal(tubesheet(49.01),1788))

26   Pass
assert(isequal(tubesheet(22.50),356))

27   Pass
assert(isequal(tubesheet(6.44),24))

28   Pass
assert(isequal(tubesheet(13.65),120))

29   Pass
assert(isequal(tubesheet(21.03),308))

30   Pass
assert(isequal(tubesheet(30.15),656))

31   Pass
assert(isequal(tubesheet(13.85),120))

32   Pass
assert(isequal(tubesheet(30.54),680))

33   Pass
assert(isequal(tubesheet(35.85),936))

34   Pass
assert(isequal(tubesheet(11.87),88))

35   Pass
assert(isequal(tubesheet(6.75),24))

36   Pass
assert(isequal(tubesheet(15.54),156))

37   Pass
assert(isequal(tubesheet(16.62),188))

38   Pass
assert(isequal(tubesheet(21.78),332))

39   Pass
assert(isequal(tubesheet(25.89),468))

40   Pass
assert(isequal(tubesheet(5.19),12))

41   Pass
assert(isequal(tubesheet(13.86),120))

42   Pass
assert(isequal(tubesheet(40.25),1200))

43   Pass
assert(isequal(tubesheet(2.43),0))

44   Pass
assert(isequal(tubesheet(46.51),1600))

45   Pass
assert(isequal(tubesheet(36.79),996))

46   Pass
assert(isequal(tubesheet(24.94),440))

47   Pass
assert(isequal(tubesheet(29.35),616))

48   Pass
assert(isequal(tubesheet(12.63),96))

49   Pass
assert(isequal(tubesheet(23.48),392))

50   Pass
assert(isequal(tubesheet(48.19),1732))

51   Pass
assert(isequal(tubesheet(27.79),548))

52   Pass
assert(isequal(tubesheet(26.54),500))

53   Pass
assert(isequal(tubesheet(12.35),96))

54   Pass
assert(isequal(tubesheet(24.96),440))

55   Pass
assert(isequal(tubesheet(31.58),716))

56   Pass
assert(isequal(tubesheet(34.28),864))

57   Pass
assert(isequal(tubesheet(20.38),284))

58   Pass
assert(isequal(tubesheet(19.00),256))

59   Pass
assert(isequal(tubesheet(49.41),1820))

60   Pass
assert(isequal(tubesheet(2.85),4))

61   Pass
assert(isequal(tubesheet(44.37),1460))

62   Pass
assert(isequal(tubesheet(45.75),1560))

63   Pass
assert(isequal(tubesheet(40.01),1176))

64   Pass
assert(isequal(tubesheet(5.84),16))

65   Pass
assert(isequal(tubesheet(13.83),120))

66   Pass
assert(isequal(tubesheet(17.43),208))

67   Pass
assert(isequal(tubesheet(34.31),864))

68   Pass
assert(isequal(tubesheet(7.69),32))

69   Pass
assert(isequal(tubesheet(36.34),968))

70   Pass
assert(isequal(tubesheet(6.23),16))

71   Pass
assert(isequal(tubesheet(33.03),796))

72   Pass
assert(isequal(tubesheet(25.21),448))

73   Pass
assert(isequal(tubesheet(39.17),1124))

74   Pass
assert(isequal(tubesheet(36.04),936))

75   Pass
assert(isequal(tubesheet(45.28),1520))

76   Pass
assert(isequal(tubesheet(44.66),1476))

77   Pass
assert(isequal(tubesheet(17.37),208))

78   Pass
assert(isequal(tubesheet(35.24),904))

79   Pass
assert(isequal(tubesheet(10.69),68))

80   Pass
assert(isequal(tubesheet(2.50),0))

81   Pass
assert(isequal(tubesheet(37.46),1028))

82   Pass
assert(isequal(tubesheet(25.50),460))

83   Pass
assert(isequal(tubesheet(24.52),432))

84   Pass
assert(isequal(tubesheet(45.33),1520))

85   Pass
assert(isequal(tubesheet(30.88),688))

86   Pass
assert(isequal(tubesheet(31.27),708))

87   Pass
assert(isequal(tubesheet(43.11),1380))

88   Pass
assert(isequal(tubesheet(40.47),1208))

89   Pass
assert(isequal(tubesheet(29.26),616))

90   Pass
assert(isequal(tubesheet(9.96),52))

91   Pass
assert(isequal(tubesheet(12.76),104))

92   Pass
assert(isequal(tubesheet(44.44),1476))

93   Pass
assert(isequal(tubesheet(2.41),0))

94   Pass
assert(isequal(tubesheet(25.01),440))

95   Pass
assert(isequal(tubesheet(9.23),52))

96   Pass
assert(isequal(tubesheet(48.96),1788))

97   Pass
assert(isequal(tubesheet(35.92),936))

98   Pass
assert(isequal(tubesheet(25.52),460))

99   Pass
assert(isequal(tubesheet(24.08),392))

100   Pass
assert(isequal(tubesheet(3.92),4))

101   Pass
assert(isequal(tubesheet(34.42),872))

102   Pass
assert(isequal(tubesheet(3.08),4))

103   Pass
assert(isequal(tubesheet(4.50),12))

104   Pass
assert(isequal(tubesheet(26.56),500))

105   Pass
assert(isequal(tubesheet(5.74),16))

106   Pass
assert(isequal(tubesheet(41.09),1240))

107   Pass
assert(isequal(tubesheet(41.06),1240))

108   Pass
assert(isequal(tubesheet(36.40),968))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!