summaryrefslogtreecommitdiff
path: root/3554/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3554/CH2/EX2.1/Ex2_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3554/CH2/EX2.1/Ex2_1.sce')
-rw-r--r--3554/CH2/EX2.1/Ex2_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3554/CH2/EX2.1/Ex2_1.sce b/3554/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..68775e314
--- /dev/null
+++ b/3554/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,21 @@
+// Exa 2.1
+
+clc;
+clear all;
+
+// Given data
+
+N= 100; // Number of turns
+W=20; // Width of coil(mm)
+D= 30; // Depth of coil(mm)
+B= 0.1; // Flux density (wb/m^2)
+I= 10; // Current in coil(mA)
+K= 2*10^-6; // Spring constant(Nm/degree)
+
+// Solution
+A= W*10^-3*D*10^-3; // Area of coil(m^2)
+Td= B*N*A*I*10^-3; // Deflecting torque(Nm)
+disp("As deflecting torque = restoring torque(K*Theta)");
+Theta= Td/K;
+printf(' The defecting torque = %.1f * 10^-6 Nm \n ', Td*10^6);
+printf('Therefore, the deflection = %d degrees \n ' , Theta);