diff options
Diffstat (limited to '1553/CH23/EX23.1/23Ex1.sce')
-rw-r--r-- | 1553/CH23/EX23.1/23Ex1.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1553/CH23/EX23.1/23Ex1.sce b/1553/CH23/EX23.1/23Ex1.sce new file mode 100644 index 000000000..e18d40e28 --- /dev/null +++ b/1553/CH23/EX23.1/23Ex1.sce @@ -0,0 +1,24 @@ +// Chapter 23 Ex1
+
+clc;
+clear;
+close;
+
+//(i)
+
+n1=27; n2=3;
+ans1=log(n1)/log(n2);
+mprintf("log 27 to the base 3 is %d",ans1);
+
+//(ii)
+
+n3=(1/343); n4=7;
+ans2=log(n3)/log(n4);
+mprintf("\nlog (1/343) to the base 7 is %d",ans2);
+
+//(iii)
+
+n5=0.01; n6=100;
+ans3=log(n5)/log(n6);
+mprintf("\nlog 0.01 to the base 100 is %.0f",ans3);
+
|