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/CH6/EX6.15/Ex6_15.sce | |
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/CH6/EX6.15/Ex6_15.sce')
-rwxr-xr-x | 2672/CH6/EX6.15/Ex6_15.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2672/CH6/EX6.15/Ex6_15.sce b/2672/CH6/EX6.15/Ex6_15.sce new file mode 100755 index 000000000..d311e2025 --- /dev/null +++ b/2672/CH6/EX6.15/Ex6_15.sce @@ -0,0 +1,19 @@ +//Example 6_15
+clc;
+clear;
+close;
+format('v',4);
+//given data :
+//v=50*sin(100*%pi*t)
+Vm=50;//V
+f=50;//Hz
+rf=20;//ohm
+RL=5000;//ohm
+Im=Vm/(rf+RL)*1000;//mA
+disp("(a) Current is "+string(Im)+"*sin(100*%pi*t) for %pi <100*%pi*t<2*%pi & it will be zero for 0 <100*%pi*t<%pi");
+format('v',5);
+Vdc=Im/1000/%pi*RL;//V
+disp("(b) Output Voltage, Vo = "+string(Vdc)+"*sin(100*%pi*t) for %pi <100*%pi*t<2*%pi & it will be zero for 0 <100*%pi*t<%pi ");
+//Assuming diode is ideal
+disp("(c) Voltage across diode, v = "+string(Vdc)+"*sin(100*%pi*t) for 0 <100*%pi*t<%pi & it will be zero for %pi <100*%pi*t<2*%pi ");
+
|