summaryrefslogtreecommitdiff
path: root/2360/CH6/EX6.27
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2360/CH6/EX6.27
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2360/CH6/EX6.27')
-rwxr-xr-x2360/CH6/EX6.27/ex6_27.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/2360/CH6/EX6.27/ex6_27.sce b/2360/CH6/EX6.27/ex6_27.sce
new file mode 100755
index 000000000..5e4a7bd50
--- /dev/null
+++ b/2360/CH6/EX6.27/ex6_27.sce
@@ -0,0 +1,34 @@
+// Exa 6.27
+format('v',7);clc;clear;close;
+// Given data
+Z1 = 400;// in ohm
+Z2 = 200;// in ohm
+Z3 = 800;// in ohm
+Z4 = 400;// in ohm
+theta1 = 50;// in degree
+theta2 = 40;// in degree
+theta3 = -50;// in degree
+theta4 = 20;// in degree
+if abs(Z1*Z4)== abs(Z3*Z2) then // Applying the condition of balance for magnitude
+ flag1=1;
+ disp("The condition of balance for magnitude is satisfied")
+else
+ flag1=0
+ disp("The condition of balance for magnitude is not satisfied")
+end
+if theta1+theta4==theta2+theta3 then // Applying the condition of balance for phases
+ flag2=1
+ disp("The condition of balance for phase is also satisfied")
+else
+ flag2=0
+ disp("But the condition of balance for phase is not satisfied")
+end
+if flag1==1 then
+ if flag2==1 then
+ disp("Hence the bridge is under balanced condition")
+ else
+ disp("Hence the bridge is not under balanced condition")
+ end
+else
+ disp("Hence the bridge is not under balanced condition")
+end