summaryrefslogtreecommitdiff
path: root/1553/CH25
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1553/CH25
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/CH25')
-rw-r--r--1553/CH25/EX25.1/25Ex1.sce11
-rw-r--r--1553/CH25/EX25.10/25Ex10.sce10
-rw-r--r--1553/CH25/EX25.11/25Ex11.sce14
-rw-r--r--1553/CH25/EX25.12/25Ex12.sce12
-rw-r--r--1553/CH25/EX25.14/25Ex14.sce11
-rw-r--r--1553/CH25/EX25.15/25Ex15.sce9
-rw-r--r--1553/CH25/EX25.16/25Ex16.sce9
-rw-r--r--1553/CH25/EX25.17/25Ex17.sce11
-rw-r--r--1553/CH25/EX25.19/25Ex19.sce12
-rw-r--r--1553/CH25/EX25.2/25Ex2.sce8
-rw-r--r--1553/CH25/EX25.20/25Ex20.sce10
-rw-r--r--1553/CH25/EX25.21/25Ex21.sce10
-rw-r--r--1553/CH25/EX25.22/25Ex22.sce9
-rw-r--r--1553/CH25/EX25.23/25Ex23.sce10
-rw-r--r--1553/CH25/EX25.24/25Ex24.sce8
-rw-r--r--1553/CH25/EX25.25/25Ex25.sce8
-rw-r--r--1553/CH25/EX25.26/25Ex26.sce13
-rw-r--r--1553/CH25/EX25.27/25Ex27.sce10
-rw-r--r--1553/CH25/EX25.28/25Ex28.sce10
-rw-r--r--1553/CH25/EX25.29/25Ex29.sce9
-rw-r--r--1553/CH25/EX25.3/25Ex3.sce16
-rw-r--r--1553/CH25/EX25.30/25Ex30.sce8
-rw-r--r--1553/CH25/EX25.32/25Ex32.sce9
-rw-r--r--1553/CH25/EX25.33/25Ex33.sce9
-rw-r--r--1553/CH25/EX25.4/25Ex4.sce14
-rw-r--r--1553/CH25/EX25.5/25Ex5.sce13
-rw-r--r--1553/CH25/EX25.6/25Ex6.sce10
-rw-r--r--1553/CH25/EX25.7/25Ex7.sce8
-rw-r--r--1553/CH25/EX25.8/25Ex8.sce9
-rw-r--r--1553/CH25/EX25.9/25Ex9.sce11
30 files changed, 311 insertions, 0 deletions
diff --git a/1553/CH25/EX25.1/25Ex1.sce b/1553/CH25/EX25.1/25Ex1.sce
new file mode 100644
index 000000000..c95b68f01
--- /dev/null
+++ b/1553/CH25/EX25.1/25Ex1.sce
@@ -0,0 +1,11 @@
+//Chapter 25, Ex1
+clc;
+clear;
+close;
+l=16; b=14; h=7; //given
+volume=l*b*h;
+surface_area=[2*((l*b)+(b*h)+(l*h))];
+//disp("cubic meter",volume,"The volume is:")
+//disp("cubic centimeter",surface_area,"The surface area is:");
+printf("The volume is %d cubic meter",volume);
+printf("\n The surface area is %d cubic centimeter",surface_area);
diff --git a/1553/CH25/EX25.10/25Ex10.sce b/1553/CH25/EX25.10/25Ex10.sce
new file mode 100644
index 000000000..d59581f5d
--- /dev/null
+++ b/1553/CH25/EX25.10/25Ex10.sce
@@ -0,0 +1,10 @@
+//Chapter 25 Ex 10
+
+clc;
+close;
+clear;
+scube=15; lvessel=20; bvessel=15; //all in cemtimeter
+volcube=(scube)^3;
+areavessel=lvessel*bvessel;
+rise=volcube/areavessel;
+mprintf("The rise in water level is %.2f cm",rise);
diff --git a/1553/CH25/EX25.11/25Ex11.sce b/1553/CH25/EX25.11/25Ex11.sce
new file mode 100644
index 000000000..608ebb4cd
--- /dev/null
+++ b/1553/CH25/EX25.11/25Ex11.sce
@@ -0,0 +1,14 @@
+//Chapter 25 Ex 11
+
+clc;
+close;
+clear;
+scube1=1; scube2=6; scube3=8; //all in centimeter
+vol1=(scube1)^3;
+vol2=(scube2)^3;
+vol3=(scube3)^3;
+volnew=vol1+vol2+vol3;
+newedge=nthroot(volnew,3);
+facearea=(newedge)^2;
+surarea=6*facearea;
+mprintf("The surface area of the new cube is %.0f square centimeters",surarea);
diff --git a/1553/CH25/EX25.12/25Ex12.sce b/1553/CH25/EX25.12/25Ex12.sce
new file mode 100644
index 000000000..3ff691bac
--- /dev/null
+++ b/1553/CH25/EX25.12/25Ex12.sce
@@ -0,0 +1,12 @@
+//Chapter 25 Ex 12
+
+clc;
+close;
+clear;
+//let the original length of edge a=1
+edge=1; inc=50/100;
+surorg=6*(edge^2);
+newedge=(1+inc)*edge;
+surnew=6*(newedge^2);
+incsurarea=((surnew-surorg)/surorg)*100;
+mprintf("The percentage increase in surface area is %d percent",incsurarea);
diff --git a/1553/CH25/EX25.14/25Ex14.sce b/1553/CH25/EX25.14/25Ex14.sce
new file mode 100644
index 000000000..b6eeef7af
--- /dev/null
+++ b/1553/CH25/EX25.14/25Ex14.sce
@@ -0,0 +1,11 @@
+//chapter 25 Ex 14
+clc;
+clear;
+close;
+d=7; //given diameter
+r=d/2;
+h=40; //given height
+vol=(22/7)*r^2*h;
+curved_area=2*(22/7)*r*h;
+Total_area=(2*(22/7)*r*h)+(2*(22/7)*r^2);
+printf("Volume= %d cubic cm\n Curved Surface area= %d square cm\n Total surface area= %d square cm",vol,curved_area,Total_area);
diff --git a/1553/CH25/EX25.15/25Ex15.sce b/1553/CH25/EX25.15/25Ex15.sce
new file mode 100644
index 000000000..90e024e68
--- /dev/null
+++ b/1553/CH25/EX25.15/25Ex15.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex 15
+clc;
+clear;
+close;
+vol=1848;
+diameter=14;
+radius=diameter/2;
+h= vol/(%pi*radius^2);
+mprintf("The depth of tank is %.0f meter",h);
diff --git a/1553/CH25/EX25.16/25Ex16.sce b/1553/CH25/EX25.16/25Ex16.sce
new file mode 100644
index 000000000..6d7441570
--- /dev/null
+++ b/1553/CH25/EX25.16/25Ex16.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex16
+clc;
+clear;
+close;
+vol=2.2/1000; //converting into cubic meter
+d=0.5/100; //diameter in meter
+r=d/2; //radius
+h=vol/(%pi*r^2);
+mprintf("The length of wire is %.0f meter",h);
diff --git a/1553/CH25/EX25.17/25Ex17.sce b/1553/CH25/EX25.17/25Ex17.sce
new file mode 100644
index 000000000..a8ca27111
--- /dev/null
+++ b/1553/CH25/EX25.17/25Ex17.sce
@@ -0,0 +1,11 @@
+//Ch25_Ex17
+clc;
+clear;
+close;
+vol=0.88;
+l=7; //length
+d=2/100; //diameter converting into centimeter
+r=d/2;
+volRod=%pi*r^2*l;
+noRods=vol/volRod; //number of rods
+mprintf("The number of rods made are %.0f",noRods);
diff --git a/1553/CH25/EX25.19/25Ex19.sce b/1553/CH25/EX25.19/25Ex19.sce
new file mode 100644
index 000000000..b12aec253
--- /dev/null
+++ b/1553/CH25/EX25.19/25Ex19.sce
@@ -0,0 +1,12 @@
+//Ch25_Ex19
+clc;
+clear;
+close;
+vol=1; w=21/1000; //weight converted into kilogram
+l=1*100; r=3/2; //since diameter=3cm
+t=1; //thickness of metal
+innerR=r; //inner radius
+outerR=innerR+t; //outer radius
+volIron= %pi*outerR^2*l-%pi*innerR^2*l;
+weightPipe=volIron*w;
+mprintf("The weight of the pipe is %.1f kg",weightPipe);
diff --git a/1553/CH25/EX25.2/25Ex2.sce b/1553/CH25/EX25.2/25Ex2.sce
new file mode 100644
index 000000000..4d35db713
--- /dev/null
+++ b/1553/CH25/EX25.2/25Ex2.sce
@@ -0,0 +1,8 @@
+//Chapter 25 Ex 2
+
+clc;
+close;
+clear;
+long=12; breadth=8; height=9; //all in meters
+ldia=sqrt(long^2+breadth^2+height^2);
+mprintf("The length of longest pole is %d meters",ldia);
diff --git a/1553/CH25/EX25.20/25Ex20.sce b/1553/CH25/EX25.20/25Ex20.sce
new file mode 100644
index 000000000..8749ee297
--- /dev/null
+++ b/1553/CH25/EX25.20/25Ex20.sce
@@ -0,0 +1,10 @@
+//Ch25_Ex20
+clc;
+clear;
+close;
+r=21; h=28;
+slantH=sqrt(r^2+h^2); //slant height
+vol=(1/3)*(22/7)*r^2*h;
+curvedArea=(22/7)*r*slantH;
+totalArea=curvedArea+(22/7)*r^2;
+mprintf("Slant Height= %.0f cm\n Volume= %.0f cubic cm\n Curved Surface area= %.0f square cm\n Total surface area= %.0f square cm",slantH,vol,curvedArea,totalArea);
diff --git a/1553/CH25/EX25.21/25Ex21.sce b/1553/CH25/EX25.21/25Ex21.sce
new file mode 100644
index 000000000..f0cdb3bbe
--- /dev/null
+++ b/1553/CH25/EX25.21/25Ex21.sce
@@ -0,0 +1,10 @@
+//Ch25_Ex21
+clc;
+clear;
+close;
+
+r=7; h=24; w=1.25;
+l=sqrt(h^2+r^2);
+area=%pi*r*l;
+lengthCanvas=area/w;
+mprintf("The length of canvas is %.0f meter",lengthCanvas);
diff --git a/1553/CH25/EX25.22/25Ex22.sce b/1553/CH25/EX25.22/25Ex22.sce
new file mode 100644
index 000000000..af547237f
--- /dev/null
+++ b/1553/CH25/EX25.22/25Ex22.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex22
+clc;
+clear;
+close;
+//since the heights are in in ratio 1:2 and perimeter in ratio 3:4;
+//let ratio of radii be ratioR
+ratioR=(4/3); ratioH=1/2
+ratioV=((1/3)*%pi*ratioH)/((1/3)*%pi*ratioR);
+mprintf("The ratio of their volumes is %.2f",ratioV);
diff --git a/1553/CH25/EX25.23/25Ex23.sce b/1553/CH25/EX25.23/25Ex23.sce
new file mode 100644
index 000000000..2b2f99a2c
--- /dev/null
+++ b/1553/CH25/EX25.23/25Ex23.sce
@@ -0,0 +1,10 @@
+//Ch25_Ex23
+clc;
+clear;
+close;
+//since the radii are in in ratio 3:4 and heights in ratio 2:3;
+//let ratio of radii be ratioR
+ratioR=(3/4); ratioH=2/3;
+ratioV=(%pi*ratioH*ratioR^2)/((1/3)*%pi);
+mprintf("The ratio of their volumes is %.2f",ratioV);
+
diff --git a/1553/CH25/EX25.24/25Ex24.sce b/1553/CH25/EX25.24/25Ex24.sce
new file mode 100644
index 000000000..cafd13235
--- /dev/null
+++ b/1553/CH25/EX25.24/25Ex24.sce
@@ -0,0 +1,8 @@
+//Ch25_Ex24
+clc;
+clear;
+close;
+r1=12; h1=50; r2=10;
+vol=(1/3)*(22/7)*r1^2*h1;
+h2=vol/((22/7)*r2^2);
+mprintf("The height to which liquid rises in cylindrical vessel is %.0f cm",h2);
diff --git a/1553/CH25/EX25.25/25Ex25.sce b/1553/CH25/EX25.25/25Ex25.sce
new file mode 100644
index 000000000..f9c96f709
--- /dev/null
+++ b/1553/CH25/EX25.25/25Ex25.sce
@@ -0,0 +1,8 @@
+//Ch25_Ex25
+clc;
+clear;
+close;
+r=10.5;
+vol=(4/3)*(22/7)*r^3;
+surfaceArea=4*(22/7)*r^2;
+mprintf("Volume= %.0f cubic cm\n Surface Area=%.0f square cm",vol,surfaceArea);
diff --git a/1553/CH25/EX25.26/25Ex26.sce b/1553/CH25/EX25.26/25Ex26.sce
new file mode 100644
index 000000000..d95b1fb9a
--- /dev/null
+++ b/1553/CH25/EX25.26/25Ex26.sce
@@ -0,0 +1,13 @@
+//Ch25_Ex26
+clc;
+clear;
+close;
+increasedR=50/100;
+newR=1+increasedR;
+originalVol=(4/3)*%pi; //this formula excludes the term R since it is not given and it gets cancelled with denominator
+newVol=(4/3)*%pi*newR^3;
+originalArea=4*%pi;
+newArea=4*%pi*newR^2;
+percentIncVol=(newVol-originalVol)/originalVol;//percent increase in volume
+percentIncSurArea=(newArea-originalArea)/originalArea;
+mprintf("The increase in volume is %.1f percent and the increase in surface area is %.0f percent",percentIncVol*100,percentIncSurArea*100);
diff --git a/1553/CH25/EX25.27/25Ex27.sce b/1553/CH25/EX25.27/25Ex27.sce
new file mode 100644
index 000000000..e44e23630
--- /dev/null
+++ b/1553/CH25/EX25.27/25Ex27.sce
@@ -0,0 +1,10 @@
+//Ch25_Ex27
+clc;
+clear;
+close;
+dl=1; rl=dl/2; //diameter and radius of lead ball
+ds=12; rs=ds/2;//diamerer and radius of sphere
+volS=(4/3)*%pi*rs^3;
+volL=(4/3)*%pi*rl^3;
+noBalls=volS/volL;
+mprintf("THe number of lead balls are %d",noBalls);
diff --git a/1553/CH25/EX25.28/25Ex28.sce b/1553/CH25/EX25.28/25Ex28.sce
new file mode 100644
index 000000000..3839a4c4f
--- /dev/null
+++ b/1553/CH25/EX25.28/25Ex28.sce
@@ -0,0 +1,10 @@
+//Ch25_Ex28
+clc;
+clear;
+close;
+db=1.5; rb=db/2; //diameter and radius of bullet
+rc=6; hc=28;//radius and height of cylinder
+volC=%pi*rc^2*hc;
+volB=(4/3)*%pi*rb^3;
+noBullets=volC/volB;
+mprintf("THe number of bullets are %d",noBullets);
diff --git a/1553/CH25/EX25.29/25Ex29.sce b/1553/CH25/EX25.29/25Ex29.sce
new file mode 100644
index 000000000..b690bf440
--- /dev/null
+++ b/1553/CH25/EX25.29/25Ex29.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex29
+clc;
+clear;
+close;
+dw=4; rw=dw/2; //diameter and radius wire
+ds=18; rs=ds/2;//diamerer and radius of sphere
+volS=(4/3)*%pi*rs^3;
+hw=volS/(%pi*rw^2);
+mprintf("THe length of wire is %.0f m",hw);
diff --git a/1553/CH25/EX25.3/25Ex3.sce b/1553/CH25/EX25.3/25Ex3.sce
new file mode 100644
index 000000000..49c721c72
--- /dev/null
+++ b/1553/CH25/EX25.3/25Ex3.sce
@@ -0,0 +1,16 @@
+//Ch25_Ex3
+clc;
+clear;
+close;
+volume=12.8; //Given
+x=poly(3,"x");
+40*x*5*x*x==12.8; //volume=l*b*h and l=40*x, h=5*x, b=x
+
+//polynomial is 200*x^3-12.8=0;
+//let s=x^3
+s=12.8/200;
+s=nthroot(s,3);
+
+b=s*100; //converting meter into centimeter
+printf("The breadth is: %d cm",b);
+
diff --git a/1553/CH25/EX25.30/25Ex30.sce b/1553/CH25/EX25.30/25Ex30.sce
new file mode 100644
index 000000000..bbbe2383e
--- /dev/null
+++ b/1553/CH25/EX25.30/25Ex30.sce
@@ -0,0 +1,8 @@
+//Ch25_Ex30
+clc;
+clear;
+close;
+h1=4.1; h2=4.3; r=2.1
+volS=(1/3)*%pi*r^2*(h1+h2);
+R=nthroot(volS/((4/3)*%pi),3);
+mprintf("The diameter of sphere is %.1f cm",R*2);
diff --git a/1553/CH25/EX25.32/25Ex32.sce b/1553/CH25/EX25.32/25Ex32.sce
new file mode 100644
index 000000000..8e4881b5e
--- /dev/null
+++ b/1553/CH25/EX25.32/25Ex32.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex32
+clc;
+clear;
+close;
+r=10.5;
+vol=(2/3)*(22/7)*r^3;
+curved=2*(22/7)*r^2;
+total=3*(22/7)*r^2;
+mprintf("Volume=%.1f cubic cm\n Curved surface area=%.0f square cm\n Total surface area=%.1f square cm",vol,curved,total);
diff --git a/1553/CH25/EX25.33/25Ex33.sce b/1553/CH25/EX25.33/25Ex33.sce
new file mode 100644
index 000000000..85a55b9f4
--- /dev/null
+++ b/1553/CH25/EX25.33/25Ex33.sce
@@ -0,0 +1,9 @@
+//Ch25_Ex33
+clc;
+clear;
+close;
+r1=9; d2=3; r2=d2/2; h=4;
+volBowl=(2/3)*%pi*r1^3;
+vol1bottle=(%pi)*r2^2*h;
+noBottles=volBowl/vol1bottle;
+mprintf("The number of bottles required are %.0f",noBottles);
diff --git a/1553/CH25/EX25.4/25Ex4.sce b/1553/CH25/EX25.4/25Ex4.sce
new file mode 100644
index 000000000..8770bb920
--- /dev/null
+++ b/1553/CH25/EX25.4/25Ex4.sce
@@ -0,0 +1,14 @@
+//Ch25 Ex 4
+clc;
+clear;
+close;
+
+lb=24; bb=12; hb=8; //dimensions of brick
+lw=2400; bw=800; hw=60; //converting meter to centimeter
+mortar=10/100;
+remaining=1-mortar;
+volWall=lw*bw*hw;
+volBricks=remaining*(volWall);
+vol1brick=lb*bb*hb; //volume of 1 brick
+noBricks=volBricks/vol1brick; //number of bricks required
+mprintf("The number od=f bricks required are %d",noBricks);
diff --git a/1553/CH25/EX25.5/25Ex5.sce b/1553/CH25/EX25.5/25Ex5.sce
new file mode 100644
index 000000000..bd5157127
--- /dev/null
+++ b/1553/CH25/EX25.5/25Ex5.sce
@@ -0,0 +1,13 @@
+//Ch25_Ex5
+clc;
+clear;
+close;
+lt=200; bt=150; //dimensions of tank
+lp=1.5; bp=1.25; //dimensions of pipe
+rise=2
+speed=20*1000/60; //converting speed into meter/min
+volreq=lt*bt*rise;
+length1min=speed*1; //length of water column flown in 1 min
+vol1min=lp*bp*length1min;
+time=volreq/vol1min;
+mprintf("The time required is %d min",time);
diff --git a/1553/CH25/EX25.6/25Ex6.sce b/1553/CH25/EX25.6/25Ex6.sce
new file mode 100644
index 000000000..bf00c0da5
--- /dev/null
+++ b/1553/CH25/EX25.6/25Ex6.sce
@@ -0,0 +1,10 @@
+//Chapter 25 Ex 6
+clc;
+clear;
+close;
+ExtVol=50*40*23; //given
+IntVol=44*34*20; //given
+Metal_vol=ExtVol-IntVol;
+
+Weight=(Metal_vol*0.5)/1000;
+printf("Weight of box is %2.2f kg",Weight);
diff --git a/1553/CH25/EX25.7/25Ex7.sce b/1553/CH25/EX25.7/25Ex7.sce
new file mode 100644
index 000000000..e75d26196
--- /dev/null
+++ b/1553/CH25/EX25.7/25Ex7.sce
@@ -0,0 +1,8 @@
+//Chapter 25 Ex 7
+clc;
+clear;
+close;
+a=(6*sqrt(3))/sqrt(3);...//since diagonal of a cube=sqrt(3)*side;
+Volume=a^3;
+Sur_area=6*a^2;
+printf("The volume of cube is %d cubic meter \n Surface area is %d centimeter square.",Volume,Sur_area);
diff --git a/1553/CH25/EX25.8/25Ex8.sce b/1553/CH25/EX25.8/25Ex8.sce
new file mode 100644
index 000000000..ed01d0bc6
--- /dev/null
+++ b/1553/CH25/EX25.8/25Ex8.sce
@@ -0,0 +1,9 @@
+//chapter 25 ex 8
+clc;
+clear;
+close;
+
+a=sqrt(1734/6); //given surface area=1734 and by formula surface area=6*a^2
+
+volume=a^3;
+printf("The volume of cube is %d cubic cm",volume);
diff --git a/1553/CH25/EX25.9/25Ex9.sce b/1553/CH25/EX25.9/25Ex9.sce
new file mode 100644
index 000000000..8b6383c82
--- /dev/null
+++ b/1553/CH25/EX25.9/25Ex9.sce
@@ -0,0 +1,11 @@
+//chapter 25 EX 9
+clc;
+clear;
+close;
+l=6; b=12; h=15;
+volume=l*b*h;
+
+side_largest=gcd(int32([l b h])); //side of largest cube
+vol_largestcube=side_largest^3;
+num_of_cubes=volume/vol_largestcube;
+printf("The least possible cubes are %d",(volume/vol_largestcube));