diff options
author | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
---|---|---|
committer | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
commit | 8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch) | |
tree | e1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/154/CH7/EX7.17 | |
parent | 52a477ec613900885e29c4a0b02806a415b4f83a (diff) | |
download | Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.gz Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.tar.bz2 Xcos_block_examples-8ac15bc5efafa2afc053c293152605b0e6ae60ff.zip |
Diffstat (limited to 'Working_Examples/154/CH7/EX7.17')
-rwxr-xr-x | Working_Examples/154/CH7/EX7.17/ch7_17.sce | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Working_Examples/154/CH7/EX7.17/ch7_17.sce b/Working_Examples/154/CH7/EX7.17/ch7_17.sce new file mode 100755 index 0000000..de2f600 --- /dev/null +++ b/Working_Examples/154/CH7/EX7.17/ch7_17.sce @@ -0,0 +1,39 @@ +clc
+disp("Example 7.17")
+printf("\n")
+
+printf("Given")
+disp("Capacitance is 100nF")
+disp("The voltage across capacitor increases linearly from 0 to 10V")
+C=100*10^-9;
+//From figure 7.10(a)
+disp("a)")
+//At t=T voltage across capacitor =10V
+vc=10;
+Q=C*vc;
+printf("Charge across capacitor is %fC\n",Q)
+disp("b)")
+//The waveform shown in fig 7.10(a) can be written as
+disp("0 t<0")
+disp("I0=10^-6/T 0<t<T")
+disp("0 t>T")
+
+
+//For T=1s;
+T=1;
+I0=10^-6/T;
+printf("I0(1s)=%fA\n",I0);
+
+//For T=1ms;
+T=1*10^-3;
+I0=10^-6/T;
+printf("I0(1ms)=%0.3fA\n",I0);
+
+//For T=1us;
+T=1*10^-6;
+I0=10^-6/T;
+printf("I0(1us)=%dA",I0);
+
+
+
+
|