Cody

# Problem 2414. Mechanical Advantage of a Gear Train

Solution 1915581

Submitted on 29 Aug 2019
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   Fail
T_i = 10; T_o = 25; gears = [T_o; T_i]; assert(isequal(MA_gear_train(gears),2.5))

Error in solution: Line: 3 Column: 26 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
T_i1 = 5; T_o1 = 15; T_i2 = 8; T_o2 = 12; T_i3 = 6; T_o3 = 24; gears = [T_o1 T_o2 T_o3; T_i1 T_i2 T_i3]; assert(isequal(MA_gear_train(gears),18))

Error in solution: Line: 3 Column: 26 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
T_i1 = 10; T_o1 = 15; T_i2 = 8; T_o2 = 12; gears = [T_o1 T_o2; T_i1 T_i2]; assert(isequal(MA_gear_train(gears),2.25))

Error in solution: Line: 3 Column: 26 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
T_i1 = 6; T_o1 = 15; T_i2 = 5; T_o2 = 15; T_i3 = 9; T_o3 = 27; T_i4 = 6; T_o4 = 15; T_i5 = 11; T_o5 = 22; T_i6 = 14; T_o6 = 21; gears = [T_o1 T_o2 T_o3 T_o4 T_o5 T_o6; T_i1 T_i2 T_i3 T_i4 T_i5 T_i6]; assert(isequal(MA_gear_train(gears),168.75))

Error in solution: Line: 3 Column: 26 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.