summaryrefslogtreecommitdiff
path: root/147/CH4/EX4.10/Example4_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '147/CH4/EX4.10/Example4_10.sce')
-rw-r--r--147/CH4/EX4.10/Example4_10.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/147/CH4/EX4.10/Example4_10.sce b/147/CH4/EX4.10/Example4_10.sce
new file mode 100644
index 000000000..c049cbd9c
--- /dev/null
+++ b/147/CH4/EX4.10/Example4_10.sce
@@ -0,0 +1,13 @@
+//Voltage V, Resistance R, Inductance L
+close();
+clear;
+clc;
+V = 100;//V
+R = 200;//ohm
+L = 0.1;//H
+peak_overshoot = 5;//%
+phi = acot(log(100/peak_overshoot)/%pi);
+alpha = R/(2*L);
+omegao = alpha/cos(phi);
+C = 1/(L*omegao^2)*10^6;
+mprintf('C = %0.2f micro F',C); \ No newline at end of file