diff options
Diffstat (limited to '1757/CH6/EX6.18/EX6_18.sce')
-rwxr-xr-x | 1757/CH6/EX6.18/EX6_18.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/1757/CH6/EX6.18/EX6_18.sce b/1757/CH6/EX6.18/EX6_18.sce new file mode 100755 index 000000000..33bba91dd --- /dev/null +++ b/1757/CH6/EX6.18/EX6_18.sce @@ -0,0 +1,30 @@ +//Example6.18 // To determine the output voltage of integrator
+clc;
+clear;
+close;
+Vin = 1 ;
+R = 150*10^3 ;// ohm
+C = 1*10^-9 ; // F
+
+// the output voltage of an integrator is given as
+//Vo = (fc/f)*Vin ;
+
+//fc = 1/(2*%pi*R*C);
+
+//Vo = (1/(2*%pi*R*C*f))*Vin;
+
+//for the frequency f = 10 Hz the output is
+f = 10 ; // Hz
+Vo = (1/(2*%pi*R*C*f))*Vin;
+disp('for the frequency f = 10 Hz the output is = '+string(Vo)+ ' V ');
+
+//for the frequency f = 1000 Hz the output is
+f = 1000 ; // Hz
+Vo = (1/(2*%pi*R*C*f))*Vin;
+disp('for the frequency f = 1000 Hz the output is = '+string(Vo)+ ' V ');
+
+//for the frequency f = 10000 Hz the output is
+f = 10000 ; // Hz
+Vo = (1/(2*%pi*R*C*f))*Vin;
+disp('for the frequency f = 10000 Hz the output is = '+string(Vo)+ ' V ');
+
|