summaryrefslogtreecommitdiff
path: root/1553/CH23
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1553/CH23
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1553/CH23')
-rw-r--r--1553/CH23/EX23.1/23Ex1.sce24
-rw-r--r--1553/CH23/EX23.10/23Ex10.sce10
-rw-r--r--1553/CH23/EX23.2/23Ex2.sce21
-rw-r--r--1553/CH23/EX23.3/23Ex3.sce8
-rw-r--r--1553/CH23/EX23.4/23Ex4.sce14
-rw-r--r--1553/CH23/EX23.5/23Ex5.sce8
-rw-r--r--1553/CH23/EX23.6/23Ex6.sce14
-rw-r--r--1553/CH23/EX23.7/23Ex7.sce8
-rw-r--r--1553/CH23/EX23.8/23Ex8.sce8
-rw-r--r--1553/CH23/EX23.9/23Ex9.sce14
10 files changed, 129 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);
+
diff --git a/1553/CH23/EX23.10/23Ex10.sce b/1553/CH23/EX23.10/23Ex10.sce
new file mode 100644
index 000000000..b4da36ae5
--- /dev/null
+++ b/1553/CH23/EX23.10/23Ex10.sce
@@ -0,0 +1,10 @@
+// Chapter 23 Ex. 10
+
+clc;
+clear;
+close;
+//given log2 =0.30103
+//consider x=log2
+x=0.30103;
+ans=56*x;
+mprintf("The number of digits are %.0f",ans); \ No newline at end of file
diff --git a/1553/CH23/EX23.2/23Ex2.sce b/1553/CH23/EX23.2/23Ex2.sce
new file mode 100644
index 000000000..fdb82aab3
--- /dev/null
+++ b/1553/CH23/EX23.2/23Ex2.sce
@@ -0,0 +1,21 @@
+//chapter 23 Ex 2
+
+clc;
+clear;
+close;
+
+//(i)
+n1=1; n2=7;
+ans1=log(n1)/log(n2);
+mprintf("log %d to base %d is %d",n1,n2,ans1);
+
+//(ii)
+n3=34; n4=34;
+ans2=log(n3)/log(n4);
+mprintf("\n log %d to base %d is %d",n3,n4,ans2);
+
+//(iii)
+base=36; n5=4; n6=6;
+power=log(n5)/log(n6);
+ans3=base^power;
+mprintf("\n The ans is %.0f",ans3);
diff --git a/1553/CH23/EX23.3/23Ex3.sce b/1553/CH23/EX23.3/23Ex3.sce
new file mode 100644
index 000000000..47e4495d2
--- /dev/null
+++ b/1553/CH23/EX23.3/23Ex3.sce
@@ -0,0 +1,8 @@
+// Chapter 23 Ex3
+
+clc;
+clear;
+close;
+ans=(10/3); n1=sqrt(8);
+x=(n1)^ans; // derived from equation log x to the base n1=ans.
+mprintf("The value of x is %.0f",x);
diff --git a/1553/CH23/EX23.4/23Ex4.sce b/1553/CH23/EX23.4/23Ex4.sce
new file mode 100644
index 000000000..c3dfb8d95
--- /dev/null
+++ b/1553/CH23/EX23.4/23Ex4.sce
@@ -0,0 +1,14 @@
+//chapter 23 Ex 4
+
+clc;
+clear;
+close;
+//(i)
+n1=3; n2=5; n3=25; n4=27;
+ans1=(log(n1)/log(n2))*(log(n3)/log(n4));
+mprintf("The answer is %.2f",ans1);
+
+//(ii)
+n5=27; n6=9; n7=9; n8=27;
+ans2=(log(n5)/log(n6))-(log(n7)/log(n8));
+mprintf("\nThe answer is %.2f",ans2);
diff --git a/1553/CH23/EX23.5/23Ex5.sce b/1553/CH23/EX23.5/23Ex5.sce
new file mode 100644
index 000000000..91117154b
--- /dev/null
+++ b/1553/CH23/EX23.5/23Ex5.sce
@@ -0,0 +1,8 @@
+// Chapter 23 Ex5
+
+clc;
+clear;
+close;
+n1=75; n2=16; n3=5; n4=9; n5=32; n6=243;
+ans=(log(n1/n2)-2*log(n3/n4)+log(n5/n6));
+mprintf("The answer of the equation is %.2f",ans); \ No newline at end of file
diff --git a/1553/CH23/EX23.6/23Ex6.sce b/1553/CH23/EX23.6/23Ex6.sce
new file mode 100644
index 000000000..3c98b5b76
--- /dev/null
+++ b/1553/CH23/EX23.6/23Ex6.sce
@@ -0,0 +1,14 @@
+// Chapter 23 Ex6
+
+clc;
+clear;
+close;
+n1=3;
+//x=poly(0,'x');
+for x=1:.5:10
+ if log10((4*x+1)/(x+1))==(1-(log10(n1)))
+
+ break;
+end
+end
+mprintf("The value of x is %.2f",x);
diff --git a/1553/CH23/EX23.7/23Ex7.sce b/1553/CH23/EX23.7/23Ex7.sce
new file mode 100644
index 000000000..e2a2323f4
--- /dev/null
+++ b/1553/CH23/EX23.7/23Ex7.sce
@@ -0,0 +1,8 @@
+// Chapter 23 Ex7
+
+clc;
+clear;
+close;
+x=1; y=2; z=3;
+ans=(1/(log((x)*(y)*(z))/log((x)*(y))))+(1/(log((x)*(y)*(z))/log((z)*(y))))+(1/(log((x)*(y)*(z))/log((x)*(z))));
+mprintf("The answer is %d",ans); \ No newline at end of file
diff --git a/1553/CH23/EX23.8/23Ex8.sce b/1553/CH23/EX23.8/23Ex8.sce
new file mode 100644
index 000000000..fb5120cb5
--- /dev/null
+++ b/1553/CH23/EX23.8/23Ex8.sce
@@ -0,0 +1,8 @@
+//chapter 23 Ex 8
+
+clc;
+clear;
+close;
+n1=50; n2=10;
+ans1=log10(n1)
+mprintf("The value of log %d to base %d is %.3f",n1,n2,ans1);
diff --git a/1553/CH23/EX23.9/23Ex9.sce b/1553/CH23/EX23.9/23Ex9.sce
new file mode 100644
index 000000000..8abfc9d72
--- /dev/null
+++ b/1553/CH23/EX23.9/23Ex9.sce
@@ -0,0 +1,14 @@
+//chapter 23 Ex 9
+
+clc;
+clear;
+close;
+//(i)
+n1=25
+ans1=log10(n1);
+mprintf("The value of log %d is %.3f",n1,ans1);
+
+//(ii)
+n2=4.5
+ans2=log10(n2);
+mprintf("The value of log %d is %.3f",n2,ans2);