Professional Documents
Culture Documents
Date 04/01/2019 Day-Friday Test The Sequence and Series Convergence of Sequence Listplot Table (1/N, (N, 50) )
Date 04/01/2019 Day-Friday Test The Sequence and Series Convergence of Sequence Listplot Table (1/N, (N, 50) )
Day - Friday
0.25
0.20
0.15
0.10
0.05
10 20 30 40 50
80 000
60 000
40 000
20 000
10 20 30 40
2 Km Swayla.nb
1.0
0.5
20 40 60 80 100
-0.5
-1.0
0.999
0.998
0.997
20 40 60 80 100
35
30
25
20
15
10
1 2 3 4 5 6 7
Km Swayla.nb 3
20
15
10
5 10 15 20
0.10
0.08
0.06
0.04
0.02
20 40 60 80 100
15
10
5 10 15 20
4 Km Swayla.nb
0.007
0.006
0.005
0.004
0.003
0.002
0.001
20 40 60 80 100
1.5 × 1080
1.0 × 1080
5.0 × 1079
0 10 20 30 40 50 60
1.0
0.5
20 40 60 80 100
-0.5
-1.0
-1.5
-2.0
Km Swayla.nb 5
2000
1500
1000
500
0 10 20 30 40 50
8000
6000
4000
2000
20 40 60 80 100
(convergent)
1.0
0.5
20 40 60 80 100
-0.5
-1.0
-1.5
-2.0
6 Km Swayla.nb
50
20 40 60 80 100
-50
-100
divergent
100
50
20 40 60 80 100
-50
-100
an = 3 ^ n /5 ^ n;
ListPlotTableAbs[an]^ (1 /n), {n, 1, 100}
L = Limit Abs[an]^ (1 /n), n → ∞;
Print"lim Abs[an]^(1/n)=", L WhichL < 1, Print"Series S is convergent",
L > 1, Print"Series S is divergent", L = 1, Print"The test is failed"
1.2
1.0
0.8
0.6
0.4
0.2
20 40 60 80 100
3
lim Abs[an]^(1/n)=
5
Series S is convergent
Null2
an = 5 ^ n /3 ^ n;
ListPlotTableAbs[an]^ (1 /n), {n, 1, 100}
L = Limit Abs[an]^ (1 /n), n → Infinity;
Print"lL=Limit [Abs[an]^(1/n),n→∞]im Abs[an]^1/n=", L
WhichL < 1, Print"Series S is convergent", L > 1,
Print"Series S is divergent", L = 1, Print"The test is failed"
3.5
3.0
2.5
2.0
1.5
1.0
0.5
20 40 60 80 100
5
lL=Limit [Abs[an]^(1/n),n→∞]im Abs[an]^1/n=
3
Series S is divergent
Null2
8 Km Swayla.nb
an = (1 +1 /n)^ (n ^ 2);
ListPlotTableAbs[an]^ (1 /n), {n, 1, 100}
L = Limit Abs[an]^ (1 /n), n → Infinity;
Print"lL=Limit [Abs[an]^(1/n),n→∞]im Abs[an]^1/n=", L
WhichL < 1, Print"Series S is convergent", L > 1,
Print"Series S is divergent", L = 1, Print"The test is failed"
2.70
2.68
2.66
2.64
2.62
2.60
2.58
20 40 60 80 100
Series S is divergent
Null2
an = (1 +n /n ^ 2)^ (n ^ 3);
ListPlotTableAbs[an]^ (1 /n), {n, 1, 100}
L = Limit Abs[an]^ (1 /n), n → Infinity;
Print"lim Abs[an]^(1/n)=", L WhichL < 1, Print"Series S is convergent",
L > 1, Print"Series S is divergent", L = 1, Print"The test is failed"
1.5 × 1036
1.0 × 1036
5.0 × 1035
20 40 60 80 100
lim Abs[an]^(1/n)=∞
Series S is divergent
Null2
Km Swayla.nb 9
0.428
0.427
0.426
0.425
0.424
20 40 60 80 100
3
lL=Limit [Abs[an]^(1/n),n→∞]im Abs[an]^1/n=
7
Series S is convergent
Null2
10 /01 /2019
Thursday
10 Km Swayla.nb
1.2
1.0
0.8
0.6
0.4
0.2
2 4 6 8 10
5
lim Abs[bn/an]=
3
Series S is divergent
Null2
an = 2 ^ n /n ^ 5; bn = 2 ^ (n +1)/(n +1)^ 5;
ListPlotTableAbsbn an, {n, 1, 10}
L = Limit Absan bn, n → Infinity;
Print"lim Abs[bn/an]=", L WhichL < 1, Print"Series S is convergent",
L > 1, Print"Series S is divergent", L = 1, Print"the test is failed"
1.2
1.0
0.8
0.6
0.4
0.2
2 4 6 8 10
Km Swayla.nb 11
1
lim Abs[bn/an]=
2
Series S is convergent
Null2
3.0
2.5
2.0
1.5
1.0
0.5
2 4 6 8 10
3
lim Abs[bn/an]=
5
Series S is convergent
Null2
12 Km Swayla.nb
Conclusion:
n = Input"Enter number n for partial sum "
Fori= 1, i≤ n, i++, si = Sum 3 ^ i5 ^ i, i, 1, i;
t = Tablesi, i, n;
ListPlot[t]
10
1.5
1.0
0.5
2 4 6 8 10
Conclusion:
n = 500
Fori= 1, i≤ n, i++, si = Sum 3 ^ i5 ^ i, i, 1, i;
t = Tablesi, i, n;
ListPlot[t]
500
1.5
1.0
0.5
Conlusion:
n=5
Fori= 1, i≤ n, i++, si = Sum 2 ^ i7 ^ i, i, 1, i;
t = Tablesi, i, n;
ListPlot[t]
5
0.40
0.38
0.36
0.34
0.32
0.30
1 2 3 4 5
n = 10
Fori= 1, i≤ n, i++, si = Sum 3 ^ i2 ^ i, i, 1, i;
t = Tablesi, i, n;
ListPlot[t]
10
150
100
50
2 4 6 8 10
14 /01 /2019
VerifyBolzano WeierstrassTheorem Through Plottingof
Sequences and Hence IdentifyConvergent Subsequences from the Plot
and convergent from hence identifyplot sequences subsequences the
14 Km Swayla.nb
0.5
0 10 20 30 40 50
-0.5
-1.0
0.5
0 10 20 30 40 50
-0.5
-1.0
1.5
1.0
0.5
0 10 20 30 40 50
-0.5
-1.0
-1.5
Km Swayla.nb 15
1 n
DiscretePlot 1 + , {n, 1, 100}
n
2.70
2.68
2.66
2.64
2.62
2.60
2.58
20 40 60 80 100
5n
DiscretePlot , {n, 50}
7n
0.12
0.10
0.08
0.06
0.04
0.02
0 10 20 30 40 50
1 n
DiscretePlot 1 + , {n, 1, 1000}
n
2.715
2.710
2.705
1 m
Limit 1 + , m → Infinity
m
ⅇ
NPi
3.14159
1 1
DiscretePlotIfMod[n, 2] ⩵ 0, 1 + , -1 - , {n, 100}
n n
1.5
1.0
0.5
20 40 60 80 100
-0.5
-1.0
-1.5
-2.0
1 1
ListPlotTableIfMod[n, 2] ⩵ 0, 1 + , -1 - , {n, 1000}
n n
1.5
1.0
0.5
-0.5
-1.0
-1.5
-2.0
Km Swayla.nb 17
1 1 1
DiscretePlotIfMod[n, 3] ⩵ 0, 1 - , -1 - , 1+ , {n, 100}
n n n
1.0
0.5
20 40 60 80 100
-0.5
-1.0
-1.5
-2.0
n = 1;
i
Fori= 1, i≤ n, i++, IfAbs (0.5) -1 < 10-3 , Printi, n ++, Break
693
n = 1;
n
Fori= 1, i≤ n, i++, IfAbs n -1 < 10-3 , Printi, n ++, Break
20 / 02 / 2019 WEDNESDAY
a[0] = 1
a[1] = 1
Fori= 1, i< 10, i++, ai+1 = ai-1+ai; Printai+1
1
1
18 Km Swayla.nb
13
21
34
55
89
fib[20]
6765
fib[2]
1
fib[3]
2
fib[7]
13
fi-1+fi-2
avg[n_] := Modulef, f[1] = f[2] = 1; fi_ := fi = ; f[n]
2
Table[avg[n], {n, 10}]
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
k = Input"k"
j = Input"j"
n = 1;
(n +1) 1
a[n_] := ; e = ; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
5
26
Km Swayla.nb 19
k=5
j=3
n=1
(n +1) 1
a[n_] := ;e=; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
32
ClearAlla, k, j
k = Input"k";
Print"k=", k
j = Input"j"
Print"j=", j
n = 1;
(n +1) 1
a[n_] := ; e = ; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
k=5
5
j=5
32
k = 5;
j = 5;
n = 1;
(-1)n 1
a[n_] := ;e= ; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
5
32
20 Km Swayla.nb
k=5
j=5
n = 1;
1 1
a[n_] := ; e = ; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
5
32
k = 5;
j = 5;
n = 1;
(-1)n 1
a[n_] := ; p = 10j ;
;e=
n 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
32
k = Input"k";
j = Input"j";
n = 1;
n +1 1
a[n_] := ; e = ; p = 10j ;
n 2k
Fori= 1, i≤ n, i++, IfAbsa2 i+p-a2 i < e, Printi, n ++, Break
16
k = Input"k"
j = Input"j"
n = 1;
1 1
a[n_] := Sum ; p = 10j ;
, {r, 1, n}; e =
(r)! 2k
Fori= 1, i≤ n, i++, IfAbsa2 i+p-a2 i < e, Printi, n ++, Break
1
k = Input"k"
j = Input"j"
n = 1;
1 1
a[n_] := Sum ; p = 10j ;
, {r, 1, n}; e =
(r)! 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
5
5
Km Swayla.nb 21
k = Input"k"
j = Input"j"
n = 1;
(-1)(r+1) 1
a[n_] := Sum ; p = 10j ;
, {r, 1, n}; e =
r 2k
Fori= 1, i≤ n, i++, IfAbsai+p-ai < e, Printi, n ++, Break
5
16
25 /03 /2019
1
s = DSolvey ''[x]+y[x] ⩵ 0, y[0] ⩵ 1, y '[0] ⩵ , y, x
3
1
y → Function{x}, 3 Cos[x]+Sin[x]
3
1.0
0.5
5 10 15
-0.5
-1.0
-10 -5 5 10
-20 000
-40 000
-60 000
22 Km Swayla.nb
1 1
PlotEvaluatey[x] /. % /. a → , a → , {a → 4}, {x, 0, 18}
13 2
0.8
0.6
0.4
0.2
5 10 15
1 1
PlotEvaluatey[x] /. % /. a → , a → , {a → 4}, {x, 0, 18}
13 2
2.0
1.5
1.0
0.5
5 10 15
NDSolvex ''[t]+0.15 x '[t]-x[t]+x[t]3 ⩵ 0.3 Cos[t], x[0] ⩵ -1, x '[0] ⩵ 1, x, {t, 0, 50}
1.5
1.0
0.5
10 20 30 40 50
-0.5
-1.0
-1.5
3000
2500
2000
1500
1000
500
5 10 15
4000
3000
2000
1000
5 10 15
NDSolve[{y '''[x]+2 y ''[x]-y '[x] ⩵ 0, y ''[0] ⩵ 5, y '[0] ⩵ 1, y[0] ⩵ 1}, y, {x, 0, 17}]
1
NDSolvey ''[x]+y[x] ⩵ 0, y[0] ⩵ 1, y '[0] ⩵ , y, {x, 0, 10}
3
26 /03 /2019
LAKE POLLUTION MODEL
f = 48;
v = 28;
cin= 3
f
DSolveC '[t] ⩵ *cin-C[t], C[0] ⩵ a, C, t // Quiet
v
3
p1 = Plot
Evaluate[C[t] /. % /. {{a → 10}, {a → 8}, {a → 6}, {a → 4}, {a → 2}, {a → 1}}], {t, 0, 10}
3.08
3.06
3.04
3.02
3.00
2.98
2.96
2 4 6 8 10
f = 48;
v = 28;
cin= 3
f
DSolveC '[t] ⩵ *cin-C[t], C[0] ⩵ 4, C, t // Quiet
v
3
3.12
3.10
3.08
3.06
3.04
3.02
3.00
2 4 6 8 10
26 Km Swayla.nb
3.08
3.06
3.04
3.02
3.00
2.98
2.96
2 4 6 8 10
f = 48;
v = 28;
cin= 3;
f
DSolveC '[t] ⩵ *cin-C[t], C[0] ⩵ a, C, t // Quiet
v
C → Function{t}, ⅇ-12 t/7 -3 +a +3 ⅇ12 t/7
p1 =
PlotEvaluate[C[t] /. % /. {{a → 12}, {a → 10}, {a → 8}, {a → 6}, {a → 2}, {a → 1}, {a → 3}}],
{t, 0, 8}, PlotRange → All
12
10
0 2 4 6 8
f = 48;
v = 28;
cin= 3
f
DSolveC '[t] ⩵ *cin-C[t], C[0] ⩵ 4, C, t // Quiet
v
3
3.12
3.10
3.08
3.06
3.04
3.02
3.00
2 4 6 8 10
Show[p1, p2]
12
10
0 2 4 6 8 10
f = 48;
v = 28;
cin= 3;
DSolveC '[t] ⩵ f v*cin-C[t], C[0] ⩵ a, C, t // Quiet
C → Function{t}, ⅇ-12 t/7 -3 +a +3 ⅇ12 t/7
28 Km Swayla.nb
p1 = PlotEvaluate[
C[t] /. % /. {{a → 12}, {a → 10}, {a → 8}, {a → 6}, {a → 4}, {a → 2}, {a → 1}, {a → 3}}],
{t, 0, 8}, PlotRange → All
12
10
0 2 4 6 8
4.0
3.8
3.6
3.4
3.2
3.0
1 2 3 4 5 6
Show[p1, p2]
12
10
0 2 4 6 8
Km Swayla.nb 29
⇒ 27 /03 /2019
3.5 × 106
3.0 × 106
2.5 × 106
2.0 × 106
1.5 × 106
2 4 6 8
4.0 × 106
3.5 × 106
3.0 × 106
2.5 × 106
2 4 6 8
30 Km Swayla.nb
Show[p1, p2]
4.0 × 106
3.5 × 106
3.0 × 106
2.5 × 106
2.0 × 106
1.5 × 106
2 4 6 8
5 × 106
4 × 106
3 × 106
2 × 106
2 4 6 8
01 /04 /2019
⇒ Equation Logistic
Km Swayla.nb 31
r = 1; k = 1000
s = DSolvey '[x] ⩵ r y[x] 1 -y[x]k, y[0] ⩵ y0, y[x], x;
PlotEvaluate[y[x] /. s /. y0 → Range[200, 1200, 100]], {x, 0, 8}, PlotRange → Full
1000
1200
1000
800
600
400
200
2 4 6 8
r = 5; k = 1500
y[x]
s = DSolvey '[x] ⩵ r y[x] 1 - , y[0] ⩵ y0, y[x], x;
k
PlotEvaluate[y[x] /. s /. y0 → Range[200, 1200, 100]], {x, 0, 8}, PlotRange → Full
1500
1400
1200
1000
800
600
400
200
2 4 6 8
32 Km Swayla.nb
r = 5; k = 750
y[x]
s = DSolvey '[x] ⩵ r y[x] 1 - , y[0] ⩵ y0, y[x], x;
k
PlotEvaluate[y[x] /. s /. y0 → Range[200, 1200, 100]], {x, 0, 8}, PlotRange → Full
750
1200
1000
800
600
400
200
2 4 6 8
k1 = 1.3860;
k2 = 0.1386;
sol = NDSolvex '[t] ⩵ -k1 *x[t], y '[t] ⩵ k1 *x[t]-k2 *y[t], x[0] ⩵ 1, y[0] ⩵ 0,
{x[t], y[t]}, {t, 0, 15}
sol1 = PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 15}, PlotStyle → Automatic
1.0
0.8
0.6
0.4
0.2
2 4 6 8 10 12 14
⇒ 02 /04 /2019
Drug Assimulation Model -Course Cold Pill
Km Swayla.nb 33
k1 = 1.3860;
k2 = 0.1386;
sol = NDSolvex '[t] ⩵ 1 -k1 x[t], y '[t] ⩵ k1 x[t]-k2 y[t], x[0] ⩵ 0, y[0] ⩵ 0,
{x[t], y[t]}, {t, 0, 15}
PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 15}, PlotRange → {0, 2}, PlotStyle → Automatic
2.0
1.5
1.0
0.5
0 2 4 6 8 10 12 14
34 Km Swayla.nb
k1 = 1.5067;
k2 = 2.1386;
sol = NDSolvex '[t] ⩵ 1 -k1 x[t], y '[t] ⩵ k1 x[t]-k2 y[t], x[0] ⩵ 0, y[0] ⩵ 0,
{x[t], y[t]}, {t, 0, 25}
PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 25}, PlotRange → {0, 2}, PlotStyle → Blue
2.0
1.5
1.0
0.5
0 5 10 15 20 25
Km Swayla.nb 35
k1 = 1.3860;
k2 = 0.1386;
sol = NDSolvex '[t] ⩵ 2 -k1 x[t], y '[t] ⩵ k1 x[t]-k2 y[t], x[0] ⩵ 0, y[0] ⩵ 0,
{x[t], y[t]}, {t, 0, 25}
PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 25}, PlotRange → {0, 2}, PlotStyle → Automatic
2.0
1.5
1.0
0.5
0 5 10 15 20 25
β1 = 1;
c1 = 0.01;
c2 = .005;
α2 = .5;
x0 = 200;
y0 = 80;
sol = NDSolve[{x '[t] ⩵ β1 x[t]-c1 x[t] y[t],
y '[t] ⩵ c2 x[t] y[t]-α2 y[t], x[0] ⩵ x0, y[0] ⩵ y0}, {x[t], y[t]}, {t, 0, 25}];
PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 25}, PlotStyle → Blue, Green
200
150
100
50
5 10 15 20 25
36 Km Swayla.nb
β1 = 1;
c1 = 0.01;
c2 = .005;
α2 = .5;
x0 = 250;
y0 = 100;
sol = NDSolve[{x '[t] ⩵ β1 x[t]-c1 x[t] y[t],
y '[t] ⩵ c2 x[t] y[t]-α2 y[t], x[0] ⩵ x0, y[0] ⩵ y0}, {x[t], y[t]}, {t, 0, 25}];
PlotEvaluate{x[t], y[t]} /. sol, {t, 0, 25}, PlotStyle → Blue, Green
250
200
150
100
50
5 10 15 20 25
03 /04 /2019
EpidemicModel of Influenza -
basicEpidemicModel
β = 2.18 *10 ^ -3;
γ = 0.44;
s0 = 762;
I0 = 1;
sol = NDSolve[{s '[t] ⩵ -β s[t] A[t], A '[t] ⩵ β s[t] A[t]-γ A[t], R '[t] ⩵ γ A[t],
s[0] ⩵ s0, A[0] ⩵ I0, R[0] ⩵ 0}, {s[t], A[t], R[t]}, {t, 0, 25}];
PlotEvaluate{s[t], A[t], R[t]} /. sol, {t, 0, 25}, PlotStyle → Red, Blue, Green
800
600
400
200
5 10 15 20 25
Km Swayla.nb 37
800
600
400
200
5 10 15 20 25
Battle Model
a1 = 0.0544;
a2 = 0.0106;
R0 = 66;
B0 = 18;
sol = NDSolve[
{R '[t] ⩵ -a1 B[t], B '[t] ⩵ -a2 R[t], R[0] ⩵ R0, B[0] ⩵ B0}, {R[t], B[t]}, {t, 0, 25}];
PlotEvaluate{R[t], B[t]} /. sol, {t, 0, 50}, PlotRange → {0, 100},
PlotStyle → Red, Blue
100
80
60
40
20
0 10 20 30 40 50
38 Km Swayla.nb
a1 = 0.0544;
a2 = 0.0106;
R0 = 66;
B0 = 18;
sol = NDSolve[{R '[t] ⩵ -a1 B[t], B '[t] ⩵ -a2 R[t] B[t], R[0] ⩵ R0, B[0] ⩵ B0},
{R[t], B[t]}, {t, 0, 25}];
PlotEvaluate{R[t], B[t]} /. sol, {t, 0, 30}, PlotStyle → Red, Blue
60
50
40
30
20
10
5 10 15 20 25 30
a1 = 0.0544;
a2 = 0.0106;
R0 = 66;
B0 = 18;
sol = NDSolve[{R '[t] ⩵ -a1 R[t] B[t], B '[t] ⩵ -a2 B[t] R[t], R[0] ⩵ R0, B[0] ⩵ B0},
{R[t], B[t]}, {t, 0, 25}];
PlotEvaluate{R[t], B[t]} /. sol, {t, 0, 30}, PlotRange → {0, 50},
PlotStyle → Red, Blue
50
40
30
20
10
0 5 10 15 20 25 30
Km Swayla.nb 39