summaryrefslogtreecommitdiff
path: root/3885/CH2/EX2.2/Ex2_2.sci
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3885/CH2/EX2.2/Ex2_2.sci
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3885/CH2/EX2.2/Ex2_2.sci')
-rw-r--r--3885/CH2/EX2.2/Ex2_2.sci24
1 files changed, 24 insertions, 0 deletions
diff --git a/3885/CH2/EX2.2/Ex2_2.sci b/3885/CH2/EX2.2/Ex2_2.sci
new file mode 100644
index 000000000..2f5f5c8dc
--- /dev/null
+++ b/3885/CH2/EX2.2/Ex2_2.sci
@@ -0,0 +1,24 @@
+//control systems by Nagoor Kani A
+//Edition 3
+//Year of publication 2015
+//Scilab version 6.0.0
+//operating systems windows 10
+// Example 2.2
+clc;
+clear;
+n1=20//no of teeth in first gear
+n2=10//no of teeth in second gear
+diratio=n1/n2
+disp(diratio,'the ratio of diameters is')
+theta1=40//gear1 is rotated by an angle of 40 degree
+theta2=(n1/n2)*theta1
+disp(theta2,'displace ment of gear2 in (degrees)')
+as1=30//angular speed of gear1 is 30 rad/sec
+as2=(n1/n2)*as1
+disp(as2,' angular speed of gear2 in(rad/sec)')
+aa2=4//angular accleration of gear 2 is 4 rad/sec^2
+aa1=(n2/n1)*aa2
+disp(aa1,'angular accleration of gear 1 in (rad/sec^2)')
+t1=5//torque on gear1 5N-m
+t2=(n2/n1)*t1
+disp(t2,'torque on gear2 in (N-m)')