summaryrefslogtreecommitdiff
path: root/1322/CH5
diff options
context:
space:
mode:
Diffstat (limited to '1322/CH5')
-rwxr-xr-x1322/CH5/EX5.1/46ex.sce9
-rwxr-xr-x1322/CH5/EX5.10/48ex3.sce9
-rwxr-xr-x1322/CH5/EX5.11/49ex1.sce10
-rwxr-xr-x1322/CH5/EX5.12/49ex2.sce10
-rwxr-xr-x1322/CH5/EX5.13/49ex3.sce10
-rwxr-xr-x1322/CH5/EX5.2.a/47ex1_a.sce10
-rwxr-xr-x1322/CH5/EX5.2.b/47ex1_b.sce10
-rwxr-xr-x1322/CH5/EX5.3.a/47ex2_a.sce10
-rwxr-xr-x1322/CH5/EX5.3.b/47ex2_b.sce8
-rwxr-xr-x1322/CH5/EX5.4.a/47ex3_a.sce9
-rwxr-xr-x1322/CH5/EX5.4.b/47ex3_b.sce9
-rwxr-xr-x1322/CH5/EX5.4.c/47ex3_c.sce9
-rwxr-xr-x1322/CH5/EX5.5.a/47ex4_a.sce9
-rwxr-xr-x1322/CH5/EX5.5.b/47ex4_b.sce9
-rwxr-xr-x1322/CH5/EX5.5.c/47ex4_c.sce9
-rwxr-xr-x1322/CH5/EX5.6.a/47ex5_a.sce8
-rwxr-xr-x1322/CH5/EX5.6.b/47ex5_b.sce9
-rwxr-xr-x1322/CH5/EX5.7.a/48sampleex1.sce14
-rwxr-xr-x1322/CH5/EX5.7.b/48sampleex2.sce13
-rwxr-xr-x1322/CH5/EX5.8/48ex1.sce9
-rwxr-xr-x1322/CH5/EX5.9/48ex2.sce12
21 files changed, 205 insertions, 0 deletions
diff --git a/1322/CH5/EX5.1/46ex.sce b/1322/CH5/EX5.1/46ex.sce
new file mode 100755
index 000000000..b30e2a923
--- /dev/null
+++ b/1322/CH5/EX5.1/46ex.sce
@@ -0,0 +1,9 @@
+
+clc;
+clear;
+close;
+//46ex
+//nth term in the sequence 2,4,6,8,10...is 2n. 5th term is?
+term5=2*5
+//nth term in the sequence 1,4,9,16,25 is n^2. 5th term is?
+ex2_term5=5^2
diff --git a/1322/CH5/EX5.10/48ex3.sce b/1322/CH5/EX5.10/48ex3.sce
new file mode 100755
index 000000000..84b5b9307
--- /dev/null
+++ b/1322/CH5/EX5.10/48ex3.sce
@@ -0,0 +1,9 @@
+
+clear;
+clc;
+close;
+for x=1:20
+ if(3*x+4==19)
+ mprintf("the number which gives 19 as result is %i",x)
+ end
+ end
diff --git a/1322/CH5/EX5.11/49ex1.sce b/1322/CH5/EX5.11/49ex1.sce
new file mode 100755
index 000000000..d815b84ed
--- /dev/null
+++ b/1322/CH5/EX5.11/49ex1.sce
@@ -0,0 +1,10 @@
+
+clear;
+clc;
+close;
+for x=1:10
+ if(5*x-7==8)
+ mprintf("the value of x is %i\n",x)
+ break
+ end
+end
diff --git a/1322/CH5/EX5.12/49ex2.sce b/1322/CH5/EX5.12/49ex2.sce
new file mode 100755
index 000000000..6c002e5d2
--- /dev/null
+++ b/1322/CH5/EX5.12/49ex2.sce
@@ -0,0 +1,10 @@
+
+clear;
+clc;
+close;
+for x=1:20
+ if(5*(x-3)==20)
+ mprintf("the value of x is %i \n",x)
+ break
+ end
+end
diff --git a/1322/CH5/EX5.13/49ex3.sce b/1322/CH5/EX5.13/49ex3.sce
new file mode 100755
index 000000000..b313b122f
--- /dev/null
+++ b/1322/CH5/EX5.13/49ex3.sce
@@ -0,0 +1,10 @@
+
+clear;
+clc;
+close;
+for n=1:60
+ if(3*(2*n-5)+4==55)
+ mprintf("the value of n is %i \n",n)
+ break
+ end
+end
diff --git a/1322/CH5/EX5.2.a/47ex1_a.sce b/1322/CH5/EX5.2.a/47ex1_a.sce
new file mode 100755
index 000000000..6a6217aff
--- /dev/null
+++ b/1322/CH5/EX5.2.a/47ex1_a.sce
@@ -0,0 +1,10 @@
+
+// 5,8,11,14,17.....
+clear;
+clc;
+close;
+a=5;//a is starting number of the series
+n=5;//given n=5
+d=3;//difference between the numbers
+td=a+(n-1)*d; //formula to be used for arithmetic series
+mprintf("ans= %i",td)
diff --git a/1322/CH5/EX5.2.b/47ex1_b.sce b/1322/CH5/EX5.2.b/47ex1_b.sce
new file mode 100755
index 000000000..a945695c9
--- /dev/null
+++ b/1322/CH5/EX5.2.b/47ex1_b.sce
@@ -0,0 +1,10 @@
+
+// 9,12,15,18,21.....
+clear;
+clc;
+close;
+a=9;//a is starting number of the series
+n=5;//given n=5
+d=3;//difference between the numbers
+td=a+(n-1)*d;//formula to be used for arithmetic series
+mprintf("ans= %i",td)
diff --git a/1322/CH5/EX5.3.a/47ex2_a.sce b/1322/CH5/EX5.3.a/47ex2_a.sce
new file mode 100755
index 000000000..82c72eac5
--- /dev/null
+++ b/1322/CH5/EX5.3.a/47ex2_a.sce
@@ -0,0 +1,10 @@
+
+// 5,12,19,26,33.....
+clear;
+clc;
+close;
+a=5;//a is starting number of the series
+n=5;//given n=5
+d=7;//difference between the numbers
+td=a+(n-1)*d; //formula to be used for arithmetic series
+mprintf("result= %i",td)
diff --git a/1322/CH5/EX5.3.b/47ex2_b.sce b/1322/CH5/EX5.3.b/47ex2_b.sce
new file mode 100755
index 000000000..520a64885
--- /dev/null
+++ b/1322/CH5/EX5.3.b/47ex2_b.sce
@@ -0,0 +1,8 @@
+
+// 3,6,11,18,27.....
+clear;
+clc;
+close;
+n=5;
+td=n^2+2;
+mprintf("result= %i",td)
diff --git a/1322/CH5/EX5.4.a/47ex3_a.sce b/1322/CH5/EX5.4.a/47ex3_a.sce
new file mode 100755
index 000000000..d1b9d3443
--- /dev/null
+++ b/1322/CH5/EX5.4.a/47ex3_a.sce
@@ -0,0 +1,9 @@
+
+// 5n-2
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(5*n-2)
+ end
diff --git a/1322/CH5/EX5.4.b/47ex3_b.sce b/1322/CH5/EX5.4.b/47ex3_b.sce
new file mode 100755
index 000000000..ccade8383
--- /dev/null
+++ b/1322/CH5/EX5.4.b/47ex3_b.sce
@@ -0,0 +1,9 @@
+
+//draw function machine for 4(n+5)
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(4*(n+5))
+ end
diff --git a/1322/CH5/EX5.4.c/47ex3_c.sce b/1322/CH5/EX5.4.c/47ex3_c.sce
new file mode 100755
index 000000000..af59f8582
--- /dev/null
+++ b/1322/CH5/EX5.4.c/47ex3_c.sce
@@ -0,0 +1,9 @@
+
+//draw function machine for n^2+5
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(n^2+5)
+ end
diff --git a/1322/CH5/EX5.5.a/47ex4_a.sce b/1322/CH5/EX5.5.a/47ex4_a.sce
new file mode 100755
index 000000000..cd299ad72
--- /dev/null
+++ b/1322/CH5/EX5.5.a/47ex4_a.sce
@@ -0,0 +1,9 @@
+
+// 4(5n-2)
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(4*(5*n-2))
+ end
diff --git a/1322/CH5/EX5.5.b/47ex4_b.sce b/1322/CH5/EX5.5.b/47ex4_b.sce
new file mode 100755
index 000000000..bbc5f5445
--- /dev/null
+++ b/1322/CH5/EX5.5.b/47ex4_b.sce
@@ -0,0 +1,9 @@
+
+// 4(n+5)+3
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(4*(n+5)+3)
+ end
diff --git a/1322/CH5/EX5.5.c/47ex4_c.sce b/1322/CH5/EX5.5.c/47ex4_c.sce
new file mode 100755
index 000000000..70ccfa8ec
--- /dev/null
+++ b/1322/CH5/EX5.5.c/47ex4_c.sce
@@ -0,0 +1,9 @@
+
+// 2(n^2+5)
+clear;
+clc;
+close;
+mprintf("the first five terms of the sequence are: \n");
+for n=1:5
+ disp(2*(n^2+5))
+ end
diff --git a/1322/CH5/EX5.6.a/47ex5_a.sce b/1322/CH5/EX5.6.a/47ex5_a.sce
new file mode 100755
index 000000000..d8ef0ed51
--- /dev/null
+++ b/1322/CH5/EX5.6.a/47ex5_a.sce
@@ -0,0 +1,8 @@
+
+//evaluate 2*(3*n^2+5)-4
+clear;
+clc;
+close;
+ n=7; //given
+disp('ans=')
+ disp(2*(3*n^2+5)-4)
diff --git a/1322/CH5/EX5.6.b/47ex5_b.sce b/1322/CH5/EX5.6.b/47ex5_b.sce
new file mode 100755
index 000000000..18f069199
--- /dev/null
+++ b/1322/CH5/EX5.6.b/47ex5_b.sce
@@ -0,0 +1,9 @@
+
+//evaluate 2*(3*n^2+5)-4 by removing brackets
+clear;
+clc;
+close;
+n=poly(0,'n');
+p1=2*(3*n^2+5)-4;//removing braces
+n=7;//given
+val=2*(3*n^2+5)-4
diff --git a/1322/CH5/EX5.7.a/48sampleex1.sce b/1322/CH5/EX5.7.a/48sampleex1.sce
new file mode 100755
index 000000000..d46605594
--- /dev/null
+++ b/1322/CH5/EX5.7.a/48sampleex1.sce
@@ -0,0 +1,14 @@
+
+//f(x):x->3x;g(x):x->x-2;fg(5)
+clear;
+clc;
+close;
+x=poly(0,'x');
+f=3*x;
+g=x-2;
+// fg= f(g(x))=f(x-2)=3*(x-2)
+x=5;
+fg=3*(x-2)
+
+
+
diff --git a/1322/CH5/EX5.7.b/48sampleex2.sce b/1322/CH5/EX5.7.b/48sampleex2.sce
new file mode 100755
index 000000000..f9979e91e
--- /dev/null
+++ b/1322/CH5/EX5.7.b/48sampleex2.sce
@@ -0,0 +1,13 @@
+
+//f(x):x->x+3;g(x):x->x^2;gf(5)
+clear;
+clc;
+close;
+x=poly(0,'x');
+f=x+3;
+g=x^2;
+// gf= g(f(x))=g(x+3)=(x+3)^2
+x=5;
+gf=(x+3)^2
+
+
diff --git a/1322/CH5/EX5.8/48ex1.sce b/1322/CH5/EX5.8/48ex1.sce
new file mode 100755
index 000000000..e59be4c43
--- /dev/null
+++ b/1322/CH5/EX5.8/48ex1.sce
@@ -0,0 +1,9 @@
+
+//inverse of x->3x+4
+clear;
+clc;
+close;
+x=poly(0,'x');
+p1=3*x+4;
+disp(p1,"x->")
+mprintf("inverse of the rule is:\n (x-4)/3")
diff --git a/1322/CH5/EX5.9/48ex2.sce b/1322/CH5/EX5.9/48ex2.sce
new file mode 100755
index 000000000..4c0dfcf09
--- /dev/null
+++ b/1322/CH5/EX5.9/48ex2.sce
@@ -0,0 +1,12 @@
+
+//inverse of x->3(x+4)-2
+clear;
+clc;
+close;
+x=poly(0,'x');
+mprintf("1)inverse of the rule is:\n (x+2)/3-4 \n ");
+x=6;//given
+x=3*(x+4)-2;
+mprintf("2)");
+inv_val=(x+2)/3-4
+