summaryrefslogtreecommitdiff
path: root/3836/CH18/EX18.3/Ex18_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH18/EX18.3/Ex18_3.sce')
-rw-r--r--3836/CH18/EX18.3/Ex18_3.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3836/CH18/EX18.3/Ex18_3.sce b/3836/CH18/EX18.3/Ex18_3.sce
new file mode 100644
index 000000000..1fd95f72a
--- /dev/null
+++ b/3836/CH18/EX18.3/Ex18_3.sce
@@ -0,0 +1,12 @@
+clear
+//Initialisation
+c=20*10**-6 //capacitance in farad
+r=10*10**3 //resistance in ohm
+v=5 //volt
+v2=10 //volt
+
+//Calculation
+T=c*r //time in seconds
+
+//Result
+printf("\n v = %d - %d*e^(-t/%.1f) V",v2,v,T)