summaryrefslogtreecommitdiff
path: root/1835/CH4/EX4.11/Ex4_11.sce
blob: 8377b38b356caef2d9de6ec00abe8f054232a08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//Chapter-4, Illustration 11, Page 142
//Title: Gears and Gear Drivers
//=============================================================================
clc
clear
//Input data
Ta=40//       no of teeth on gear A
Td=90//       no of teeth on gear D

//Calculations
Tb=(Td-Ta)/2//      no of teeth on gear B
Tc=Tb//           no of teeth on gear C
//
//x+y=-1
//-40x+90y=45
A=[1 1
   -Ta Td]//Coefficient matrix
B=[-1
   (Td/2)]//Constant matrix
X=inv(A)*B//Variable matrix
//
//x+y=-1
//-40x+90y=0
A1=[1 1
   -Ta Td]//Coefficient matrix
B1=[-1
   0]//Constant matrix
X1=inv(A1)*B1//Variable matrix
  
disp(X(2)) 
printf('speed of the arm = %.3f revolution clockwise',X1(2))