summaryrefslogtreecommitdiff
path: root/3871/CH4/EX4.6/Ex4_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH4/EX4.6/Ex4_6.sce')
-rw-r--r--3871/CH4/EX4.6/Ex4_6.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3871/CH4/EX4.6/Ex4_6.sce b/3871/CH4/EX4.6/Ex4_6.sce
new file mode 100644
index 000000000..22896cc90
--- /dev/null
+++ b/3871/CH4/EX4.6/Ex4_6.sce
@@ -0,0 +1,23 @@
+//===========================================================================
+//chapter 4 example 6
+
+clc;
+clear all;
+
+//Variable declaration
+I1 = 10; //current in A
+theta1 = 60; //deflection in °
+theta2 = 40; //deflection in °
+
+
+//calculations
+I2 = (I1)*(theta2/(theta1)); //current in case spring controlled ammeter in A
+x = sin(((theta2*%pi)/(180)));
+y = sin((theta1*%pi)/(180));
+I21 = (I1)*(x/y); //current in case gravity controlled ammeter in A
+
+
+//result
+mprintf("current in case spring controlled ammeter = %3.2f A",I2);
+mprintf("\ncurrent in case gravity controlled ammeter = %3.2f A",I21);
+