summaryrefslogtreecommitdiff
path: root/1322/CH19
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1322/CH19
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1322/CH19')
-rwxr-xr-x1322/CH19/EX19.1/160ex.sce23
-rwxr-xr-x1322/CH19/EX19.10/169ex2.sce10
-rwxr-xr-x1322/CH19/EX19.11/169ex3.sce10
-rwxr-xr-x1322/CH19/EX19.12/169ex4.sce13
-rwxr-xr-x1322/CH19/EX19.13/169ex5.sce11
-rwxr-xr-x1322/CH19/EX19.14/170ex1.sce7
-rwxr-xr-x1322/CH19/EX19.2/162ex.sce8
-rwxr-xr-x1322/CH19/EX19.3/165ex1.sce9
-rwxr-xr-x1322/CH19/EX19.4/167ex1.sce12
-rwxr-xr-x1322/CH19/EX19.5/167ex2.sce10
-rwxr-xr-x1322/CH19/EX19.6/167ex3.sce10
-rwxr-xr-x1322/CH19/EX19.7/168ex1.sce9
-rwxr-xr-x1322/CH19/EX19.8/168ex2.sce9
-rwxr-xr-x1322/CH19/EX19.9/169ex1.sce13
14 files changed, 154 insertions, 0 deletions
diff --git a/1322/CH19/EX19.1/160ex.sce b/1322/CH19/EX19.1/160ex.sce
new file mode 100755
index 000000000..8f1c803fb
--- /dev/null
+++ b/1322/CH19/EX19.1/160ex.sce
@@ -0,0 +1,23 @@
+
+clear ;
+clc;
+close;
+clf;
+x=linspace(0,1,7);
+y=10^x;
+plot2d(x,y,2);
+xtitle(" graph of y=10^x","x axis","y axis");
+legend("y=10^x");
+xgrid()
+
+//ex1:1.8*2.6=? ,from graph
+//1.8=10^0.26 \n 2.6=10^0.42
+x=10^0.26;y=10^0.42;
+format(4)
+ex1_ans=x*y//from the graph
+
+//ex2:9^(1/3)
+//9=10^0.96
+x=10^0.96;
+format(4)
+ex2_ans=x^(1/3)//third law of indices
diff --git a/1322/CH19/EX19.10/169ex2.sce b/1322/CH19/EX19.10/169ex2.sce
new file mode 100755
index 000000000..2e9f58389
--- /dev/null
+++ b/1322/CH19/EX19.10/169ex2.sce
@@ -0,0 +1,10 @@
+
+//logarithm : -1.6175-(-3.8463)
+clear;
+clc;
+close;
+mantissa=1.6175-0.8463;
+//in borrowing to subtract 8 from 6, -1(characteristic) becomes -2
+characteristic=-2-(-3);
+mantissa+characteristic
+
diff --git a/1322/CH19/EX19.11/169ex3.sce b/1322/CH19/EX19.11/169ex3.sce
new file mode 100755
index 000000000..7ecac880c
--- /dev/null
+++ b/1322/CH19/EX19.11/169ex3.sce
@@ -0,0 +1,10 @@
+
+//logarithm : multiply -2.8763 by 3
+clear;
+clc;
+close;
+num=2.8763;//given
+mantissa=0.8763;
+mul=mantissa*3;
+//when mantissa is multiplied, 2 is carried forward. (-2)*3=-6. the characteristic becomes -6+2=-4
+val=-4.6289
diff --git a/1322/CH19/EX19.12/169ex4.sce b/1322/CH19/EX19.12/169ex4.sce
new file mode 100755
index 000000000..917793dcd
--- /dev/null
+++ b/1322/CH19/EX19.12/169ex4.sce
@@ -0,0 +1,13 @@
+
+//logarithm: -1.8738*1.3
+clear;
+clc;
+close;
+//multiply mantissa & characteristic seperately and add results
+x=0.8738*1.3;
+y=-1*1.3;
+//as y=-1.3 is -ve, change it to -2.7 to make mantissa +ve
+y=-2.7;
+mantissa_sum=0.13594+0.7; //of x & y
+characteristic_sum=1-2;
+characteristic_sum-mantissa_sum
diff --git a/1322/CH19/EX19.13/169ex5.sce b/1322/CH19/EX19.13/169ex5.sce
new file mode 100755
index 000000000..35027a79d
--- /dev/null
+++ b/1322/CH19/EX19.13/169ex5.sce
@@ -0,0 +1,11 @@
+
+//divide -5.3716 by 3
+clear;
+clc;
+close;
+//characteristic=-5=-6+1 or the log as -6+1.3716
+characteristic=-6/3;
+mantissa=1.3716/3;
+characteristic-mantissa
+
+
diff --git a/1322/CH19/EX19.14/170ex1.sce b/1322/CH19/EX19.14/170ex1.sce
new file mode 100755
index 000000000..65380c3a2
--- /dev/null
+++ b/1322/CH19/EX19.14/170ex1.sce
@@ -0,0 +1,7 @@
+
+//log50 to the base e
+clear;
+clc;
+close;
+log(50)//natural logarithm
+// or, log50_base_e=log10(50)*2.3026
diff --git a/1322/CH19/EX19.2/162ex.sce b/1322/CH19/EX19.2/162ex.sce
new file mode 100755
index 000000000..294cceaa7
--- /dev/null
+++ b/1322/CH19/EX19.2/162ex.sce
@@ -0,0 +1,8 @@
+
+clear;
+clc;
+close;
+ans1=log10(56.2)
+ans2=log2(1024)
+ans3=log10(1000)
+ans4=log10(81)/log10(3)
diff --git a/1322/CH19/EX19.3/165ex1.sce b/1322/CH19/EX19.3/165ex1.sce
new file mode 100755
index 000000000..a081723eb
--- /dev/null
+++ b/1322/CH19/EX19.3/165ex1.sce
@@ -0,0 +1,9 @@
+
+//no. whose logarithm is 2.3714
+clear;
+clc;
+close;
+mantissa=0.3714;
+disp("from anti-logarithm table,corresponding no. is 2352")
+// As,characteristic is 2,no. must lie between 100 & 1000.\n \n hence 3 significant figures in the intergral part
+235.2
diff --git a/1322/CH19/EX19.4/167ex1.sce b/1322/CH19/EX19.4/167ex1.sce
new file mode 100755
index 000000000..2a666a5af
--- /dev/null
+++ b/1322/CH19/EX19.4/167ex1.sce
@@ -0,0 +1,12 @@
+
+//value of (57.86*4.385)
+clear;
+clc;
+close;
+//log(p*q)=log(p)+log(q)
+p=57.86;q=4.385;
+logx=log10(p)+log10(q);
+format(6)
+x=10^logx
+
+
diff --git a/1322/CH19/EX19.5/167ex2.sce b/1322/CH19/EX19.5/167ex2.sce
new file mode 100755
index 000000000..fdd5f8d63
--- /dev/null
+++ b/1322/CH19/EX19.5/167ex2.sce
@@ -0,0 +1,10 @@
+
+//value of (5.672*18.94)/1.758
+clear;
+clc;
+close;
+//log(p*q)=log(p)+log(q) , log(p/q)=log(p)-log(q)
+p=5.672;q=18.94;r=1.758;
+logx=log10(p)+log10(q)-log10(r);
+format(6)
+x=10^logx
diff --git a/1322/CH19/EX19.6/167ex3.sce b/1322/CH19/EX19.6/167ex3.sce
new file mode 100755
index 000000000..253d2e24d
--- /dev/null
+++ b/1322/CH19/EX19.6/167ex3.sce
@@ -0,0 +1,10 @@
+
+//5th root of 721.8
+clear;
+clc;
+close;
+//log(a)^n=n*log(a)
+p=721.8;n=1/5;
+logx=n*log10(p);
+format(6)
+x=10^logx
diff --git a/1322/CH19/EX19.7/168ex1.sce b/1322/CH19/EX19.7/168ex1.sce
new file mode 100755
index 000000000..9b26d8ddc
--- /dev/null
+++ b/1322/CH19/EX19.7/168ex1.sce
@@ -0,0 +1,9 @@
+
+//logs of 0.3185,0.03185,0.003185
+clear;
+clc;
+close;
+x=0.3185;y=0.03185;z=0.003185;
+logx=log10(0.3185)
+logy=log10(0.03185)
+logz=log10(0.003185)
diff --git a/1322/CH19/EX19.8/168ex2.sce b/1322/CH19/EX19.8/168ex2.sce
new file mode 100755
index 000000000..3c31d1489
--- /dev/null
+++ b/1322/CH19/EX19.8/168ex2.sce
@@ -0,0 +1,9 @@
+
+//no. with logarithm -3.5416
+clear;
+clc;
+close;
+mantissa=0.5416;
+disp("from anti-logarithm table, corresponding no.is 3840 ")
+//characteristic is -3.\n \n hence there will be 2 zeros after the decimal point
+val=0.003480
diff --git a/1322/CH19/EX19.9/169ex1.sce b/1322/CH19/EX19.9/169ex1.sce
new file mode 100755
index 000000000..02db224da
--- /dev/null
+++ b/1322/CH19/EX19.9/169ex1.sce
@@ -0,0 +1,13 @@
+
+//sum of logarithms -1.6173,-2.3415,-1.6493,-0.7374
+clear;
+clc;
+close;
+x=.6173;y=.3415;z=.6493;a=0.7374;//mantissa's of all 4 logarithms
+mantissa=x+y+z+a;
+//2 which is carried forward from the addition of mantissa is +ve.
+characteristic=-1-2-1-0+2;//characteristic part of all 4 logarithms
+mprintf("sum=-%f",mantissa)
+
+
+