summaryrefslogtreecommitdiff
path: root/2498/CH5/EX5.2
diff options
context:
space:
mode:
Diffstat (limited to '2498/CH5/EX5.2')
-rwxr-xr-x2498/CH5/EX5.2/ex5_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2498/CH5/EX5.2/ex5_2.sce b/2498/CH5/EX5.2/ex5_2.sce
new file mode 100755
index 000000000..9fcb6bd9e
--- /dev/null
+++ b/2498/CH5/EX5.2/ex5_2.sce
@@ -0,0 +1,14 @@
+// Exa 5.2
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+f = 10;// in kHz
+f = f * 10^3;// in Hz
+R = 100;// in k ohm
+R = R * 10^3;// in ohm
+//Formula used, f = 1/(2*%pi*R*C);
+C = 1/(2*%pi*R*f);// in F
+C = round(C * 10^12);// in pF
+disp(C,"The value of capacitor in pF is");