diff options
Diffstat (limited to '1535/CH2/EX2.1/Ch02Ex1.sci')
-rwxr-xr-x | 1535/CH2/EX2.1/Ch02Ex1.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1535/CH2/EX2.1/Ch02Ex1.sci b/1535/CH2/EX2.1/Ch02Ex1.sci new file mode 100755 index 000000000..f7df1fa41 --- /dev/null +++ b/1535/CH2/EX2.1/Ch02Ex1.sci @@ -0,0 +1,11 @@ +// Scilab Code Ex2.1 : Page-46 (2010)
+function V = f(t)
+ V = 0.2*sin(120*%pi*t);
+endfunction
+t = 0; // Time when peak value of current occurs
+C = 10e-012; // Capacitance of the capacitor, farad
+I = C*derivative(f,t);
+printf("\nThe peak value of displacement current = %6.4e A", I);
+
+// Result
+// The peak value of displacement current = 7.5398e-010 A
|