From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2642/CH1/EX1.4/Ex1_4.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 2642/CH1/EX1.4/Ex1_4.sce (limited to '2642/CH1/EX1.4') 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); -- cgit