summaryrefslogtreecommitdiff
path: root/2297/CH2/EX2.9/Ex2_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2297/CH2/EX2.9/Ex2_9.sce')
-rwxr-xr-x2297/CH2/EX2.9/Ex2_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2297/CH2/EX2.9/Ex2_9.sce b/2297/CH2/EX2.9/Ex2_9.sce
new file mode 100755
index 000000000..9294e5725
--- /dev/null
+++ b/2297/CH2/EX2.9/Ex2_9.sce
@@ -0,0 +1,18 @@
+// Example 2.9 :time
+clc;
+close;
+format('v',6)
+clear;
+// given :
+v=10;//voltage in volts
+r1=500;//resistance in ohms
+is=0;//current in amperes
+r=700;//resistance in ohms
+c=100;//capacitance in micro farads
+x=1/(r*c*10^-6);//variable
+i=30;//current in mA
+y=(i*10^-3)-(v/r1);//variable
+t=-((log(y*(r/v))));//time in seconds
+t1=t/x;//time in seconds
+disp(t1,"time is ,(seconds)=")
+