summaryrefslogtreecommitdiff
path: root/1652/CH2/EX2.6
diff options
context:
space:
mode:
Diffstat (limited to '1652/CH2/EX2.6')
-rwxr-xr-x1652/CH2/EX2.6/2_6.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1652/CH2/EX2.6/2_6.sce b/1652/CH2/EX2.6/2_6.sce
new file mode 100755
index 000000000..e10e892bd
--- /dev/null
+++ b/1652/CH2/EX2.6/2_6.sce
@@ -0,0 +1,9 @@
+clc
+//Initialization of variables
+t=1622 //years
+per=1 //percent
+//calculations
+Nratio=1-per/100
+x=t*log10(Nratio) / log10(0.5)
+//results
+printf("Time taken = %.1f years",x)