summaryrefslogtreecommitdiff
path: root/2498/CH2/EX2.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2498/CH2/EX2.3
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 '2498/CH2/EX2.3')
-rwxr-xr-x2498/CH2/EX2.3/ex2_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2498/CH2/EX2.3/ex2_3.sce b/2498/CH2/EX2.3/ex2_3.sce
new file mode 100755
index 000000000..308f4769a
--- /dev/null
+++ b/2498/CH2/EX2.3/ex2_3.sce
@@ -0,0 +1,23 @@
+// Exa 2.3
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+V1 = 230;// in V
+N2= 1;
+N1 = 4;
+R_L = 1;// in k ohm
+R_L = R_L * 10^3;// in ohm
+Vd = 0.7;// in V
+// V_LDC = (Vm-Vd)/%pi;// in V
+V2 = V1*(N2/N1);// in V
+// Vm = sqrt(2)*Vrms;
+Vm = sqrt(2)*V2;// in V
+// The output dc voltage
+V_LDC = (Vm-Vd)/%pi;// in V
+disp(V_LDC,"The output dc voltage in V is");
+// The current for a load resistance
+I_LDC = V_LDC/R_L;// in A
+I_LDC = I_LDC * 10^3;// in mA
+disp(I_LDC,"The current for a load resistance in mA is");