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 /2672/CH3/EX3.7 | |
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 '2672/CH3/EX3.7')
-rwxr-xr-x | 2672/CH3/EX3.7/Ex3_7.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2672/CH3/EX3.7/Ex3_7.sce b/2672/CH3/EX3.7/Ex3_7.sce new file mode 100755 index 000000000..4a2ff9969 --- /dev/null +++ b/2672/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,24 @@ +//Example 3_7
+clc;
+clear;
+close;
+format('v',6);
+//given data :
+L=0.5;//H
+C=100;//micro F
+V=230;//V
+f=50;//Hz
+R=25;//ohm
+Vm=sqrt(2)*V;//V
+omega=2*%pi*f;//rad/s
+disp("Voltage equation")
+disp("V="+string(Vm)+"*sin"+string(omega)+"*t");
+XL=omega*L;//ohm
+XC=1/omega/(C*10^-6);///ohm
+disp("Current through the resistor will be ");
+disp("i="+string(Vm/R)+"*sin("+string(2*%pi*f)+"*t)");
+disp("Current through the inductor will be ");
+disp("i="+string(Vm/XL)+"*sin("+string(2*%pi*f)+"*t-90)");
+disp("Current through the capacitor will be ");
+disp("i="+string(Vm/XC)+"*sin("+string(2*%pi*f)+"*t+90)");
+//Answer is not accurate in the book.
|