summaryrefslogtreecommitdiff
path: root/1529/CH10/EX10.20/10_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '1529/CH10/EX10.20/10_20.sce')
-rwxr-xr-x1529/CH10/EX10.20/10_20.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1529/CH10/EX10.20/10_20.sce b/1529/CH10/EX10.20/10_20.sce
new file mode 100755
index 000000000..2d6ba7e95
--- /dev/null
+++ b/1529/CH10/EX10.20/10_20.sce
@@ -0,0 +1,14 @@
+//Chapter 10, Problem 20, figure 10.35
+clc;
+//resistance of coil
+R1=400;
+R2=400;
+R3=5000;
+//value of capacitance
+C=7.5e-6;
+//calculating the value of inductance
+L=R1*R2*C;
+//calculating the value unknown resistance
+r=(R1*R2)/R3;
+printf("Inductance = %f H\n\n\n",L);
+printf("Resistance = %d ohm",r);