summaryrefslogtreecommitdiff
path: root/3169/CH9/EX9.9
diff options
context:
space:
mode:
Diffstat (limited to '3169/CH9/EX9.9')
-rw-r--r--3169/CH9/EX9.9/Ex9_9.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3169/CH9/EX9.9/Ex9_9.sce b/3169/CH9/EX9.9/Ex9_9.sce
new file mode 100644
index 000000000..923eb77cb
--- /dev/null
+++ b/3169/CH9/EX9.9/Ex9_9.sce
@@ -0,0 +1,27 @@
+//developed in windows XP operating system
+//platform Scilab 5.4.1
+clc;clear all;
+//example 9.9
+//calculation of maximum and minimum value of capacitance and tandelta
+
+//given data
+R3min=100//minimum value of R3 resistance(in ohm)
+R3max=11100//maximum value of R3 resistance(in ohm)
+R4min=100//minimum value of R4 resistance(in ohm)
+R4max=1000//maximum value of R4 resistance(in ohm)
+Cs=100*10^-12//standard capacitance(in farad)
+C3min=1*10^-9//minimum value of C3 capacitance(in farad)
+C3max=1.11*10^-6//maximum value of C3 capacitance(in farad)
+f=50//frequency(in Hz)
+
+//calculation
+Cxmax=R3max*Cs/R4min
+Cxmin=R3min*Cs/R4max
+omega=2*%pi*f
+tandeltamax=omega*R3max*C3max
+tandeltamin=omega*R3min*C3min
+
+printf('The maximum value of capacitance is %3.1f nF',Cxmax*10^9)
+printf('\nThe minimum value of capacitance is %d pF',Cxmin*10^12)
+printf('\nThe maximum value of tandelta is %3.2f',tandeltamax)
+printf('\nThe minimum value of tandelta is %3.2e',tandeltamin)