diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /881/CH1/EX1.12 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '881/CH1/EX1.12')
-rwxr-xr-x | 881/CH1/EX1.12/exa1_12.sce | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/881/CH1/EX1.12/exa1_12.sce b/881/CH1/EX1.12/exa1_12.sce new file mode 100755 index 000000000..412ec2e7e --- /dev/null +++ b/881/CH1/EX1.12/exa1_12.sce @@ -0,0 +1,43 @@ +clc; +//Example 1.12 +//Page no 25 + + +//Solution + +V1=8; +V2=0.2; +V3=0.1; + +//(a) + + +h1=2*1; + +disp('kHz',h1,"2nd harmonic = "); + +h2=3*1; + +disp('kHz',h2,"3rd harmonic = "); + +h3=12*1; + +disp('kHz',h3,"12th harmonic = "); + +//(b) + +disp("(b) ") + +p1=(V2/V1)*100; + +disp('%',p1,"%2nd order = "); + +p2=(V3/V1)*100; + +disp('%',p2,"%3nd order = "); + +THD=([sqrt((0.2^2)+(0.1^2)) ]/8)*100; + +disp('%',THD," Total harmonic distortion = "); + + |