Cody

# Problem 2414. Mechanical Advantage of a Gear Train

Solution 470354

Submitted on 11 Jul 2014 by Alfonso Nieto-Castanon
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
%% T_i = 10; T_o = 25; gears = [T_o; T_i]; assert(isequal(MA_gear_train(gears),2.5))

2   Pass
%% 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))

3   Pass
%% 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))

4   Pass
%% 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))

### Community Treasure Hunt

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

Start Hunting!