summaryrefslogtreecommitdiff
path: root/2642/CH1/EX1.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2642/CH1/EX1.4
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 '2642/CH1/EX1.4')
-rwxr-xr-x2642/CH1/EX1.4/Ex1_4.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2642/CH1/EX1.4/Ex1_4.sce b/2642/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..844830ced
--- /dev/null
+++ b/2642/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,24 @@
+// FUNDAMENTALS OF ELECTICAL MACHINES
+// M.A.SALAM
+// NAROSA PUBLISHING HOUSE
+// SECOND EDITION
+
+// Chapter 1 : REVIEW OF ELECRTIC CIRCUITS
+// Example : 1.4
+
+clc;clear; // clears the console and command history
+
+// Given data
+V_t1 = 30 // magnitudes of voltages in V 0 < t1 < 2
+V_t2 = -10 // magnitudes of voltages in V 2 < t2 < 4
+T = 4 // time period from figure
+
+// caclulations
+
+V1 = 30;
+V2 = -10;
+X= sqrt((1/4)*(integrate('V1^2','x',0,2) + integrate('V2^2','x',2,4)));
+
+//display the result
+disp("Example 1.4 solution");
+printf("\n RMS value of the voltage waveform : \n V_rms = %.2f V ", X);