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 /1535/CH2/EX2.1 | |
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 '1535/CH2/EX2.1')
-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
|