Manish 42

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Manish Kumar Sem 2.

wxmx 1 / 7

Name: Manish Kumar


Course: BSc Mathematics
Hons
Roll NO: 21/78042
Section: A
1 1.2 1/(sqrt(n+1))

➔ a[n]:=1/(sqrt(n+1));
b[n]:=abs(a[n+1]/a[n]);
1
(%o1) an := p
n+1
an + 1
(%o2) bn :=
an

➔ makelist([float(b[10^j])],j,1,10);
(%o3) [ [ 0.9574271077563382 ] , [ 0.9950859653474029 ] , [
0.9995008734403309 ] , [ 0.9999500087484378 ] , [
0.9999950000874985 ] , [ 0.999999500000875 ] , [
0.9999999500000089 ] , [ 0.9999999950000003 ] , [
0.9999999995000002 ] , [ 0.99999999995 ] ]

since limit comes out to be 1. Ratio test is


inconclusive.

➔ c[n]:=abs(a[n])^(1/n);
1/n
(%o4) cn := an

➔ makelist([float(c[10^j])],j,1,10);
(%o5) [ [ 0.8870137779069569 ] , [ 0.9771886029968799 ] , [
0.9965515821078248 ] , [ 0.9995395840056398 ] , [
0.9999424369794896 ] , [ 0.9999930922680795 ] , [
0.9999991940955372 ] , [ 0.9999999078966004 ] , [
0.9999999896383671 ] , [ 0.9999999988487075 ] ]

Since limit point comes out to be 1. Root test


is inconclusive.
Manish Kumar Sem 2.wxmx 2 / 7

2 1.1 1/(n^2+n)

➔ kill(all);
(%o0) done

➔ a[n]:=1/(n^2+n);
a[2];
b[n]:=abs(a[n+1]/a[n]);
1
(%o1) an :=
2
n +n
1
(%o2)
6
an + 1
(%o3) bn :=
an

➔ makelist([float(b[10^j])],j,1,3);
(%o4) [ [ 0.8333333333333334 ] , [ 0.9803921568627451 ] , [
0.998003992015968 ] ]

Since limit point comes out to be 1, the Ratio


test is inconclusive.

➔ c[n]:=abs(a[n+1])^(1/n);
1/n
(%o5) cn := an + 1

➔ makelist([float(c[10^j])],j,1,3);
(%o6) [ [ 0.613680900313687 ] , [ 0.9117395295159116 ] , [
0.9862765292599285 ] ]

Since the limit comes out to be 1, the ratio


test is inconclusive

3 1.3 sin n

➔ kill(all);
(%o0) done
Manish Kumar Sem 2.wxmx 3 / 7

➔ a[n]:=sin(n);
b[n]:=abs(a[n+1]/a[n]);
(%o1) an := sin ( n )
an + 1
(%o2) bn :=
an

➔ makelist([float(b[10^j])],j,1,40);
(%o3) [ [ 1.838145958924116 ] , [ 0.892686530207073 ] , [
1.112605346353609 ] , [ 3.16194298952064 ] , [ 22.98309345898286 ]
, [ 1.711881607221836 ] , [ 1.275048333722666 ] , [
0.2120871923887592 ] , [ 1.831987224634321 ] , [
0.9667658962471232 ] , [ 0.8763201663968848 ] , [
0.5492541905594652 ] , [ 2.248326274858867 ] , [
4.469535784171479 ] , [ 0.03715500425351943 ] , [
0.9999999999999999 ] , [ 0.9999999999999999 ] , [ 1.0 ] , [ 1.0 ] , [
1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 2.902170444560162 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ]
, [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [
0.9999999999999999 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] ]

since limit point comes out to be 1, ratio test


is inconclusive.

➔ c[n]:=abs(a[n])^(1/n);
1/n
(%o4) cn := an

➔ makelist([float(c[10^j])],j,1,40);
(%o5) [ [ 0.9409392291590087 ] , [ 0.9932181387294196 ] , [
0.999809921814215 ] , [ 0.9998814639120833 ] , [
0.9999666881685157 ] , [ 0.9999989501598612 ] , [
0.9999999133802889 ] , [ 0.9999999992919015 ] , [
0.999999999394577 ] , [ 0.9999999999281547 ] , [
0.9999999999992603 ] , [ 0.9999999999995077 ] , [
0.9999999999998759 ] , [ 0.9999999999999843 ] , [
0.9999999999999999 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0
] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [
1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ]
, [ 1.0 ] , [ 1.0 ] ]

Since limit point comes out to be 1, the ratio


test is inconclusive.

4 1.4 tan n
Manish Kumar Sem 2.wxmx 4 / 7

➔ kill(all);
(%o0) done

➔ a[n]:=tan(n);
(%o1) an := tan ( n )

➔ b[n]:=abs(a[n+1]/a[n]);
an + 1
(%o2) bn :=
an

➔ makelist([float(b[10^j])],j,1,40);
(%o3) [ [ 348.4955242279088 ] , [ 0.8629778469902095 ] , [
1.596431293402511 ] , [ 11.70160762263747 ] , [ 40.29272028780295
] , [ 2.002911818593717 ] , [ 1.370503861821043 ] , [
0.0786193020061153 ] , [ 232.6090708036676 ] , [
0.9570638287252289 ] , [ 0.5592532112272433 ] , [
0.4614901338577969 ] , [ 2.830871959531675 ] , [
12.41207403308042 ] , [ 0.01907741804887789 ] , [ 1.0 ] , [ 1.0 ] , [
1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 0.9999999999999999 ] , [ 1.0 ] , [
8.077447887262275 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ]
, [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [
0.9999999999999999 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [
0.9999999999999999 ] ]

Since limit point comes out to be 1, the ratio


test is inconclusive.

➔ c[n]:=abs(a[n])^(1/n);
1/n
(%o4) cn := an

➔ makelist([float(c[10^j])],j,1,40);
(%o5) [ [ 0.9575945744719855 ] , [ 0.9946904845253716 ] , [
1.000385557198642 ] , [ 0.999886366048508 ] , [ 0.999966694562272
] , [ 0.9999990154963648 ] , [ 0.9999999231117644 ] , [
1.000000009414823 ] , [ 0.9999999995714487 ] , [
0.9999999999417231 ] , [ 1.00000000000918 ] , [
0.9999999999997417 ] , [ 0.9999999999998802 ] , [
0.9999999999999846 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0
] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [
1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ] , [ 1.0 ]
, [ 1.0 ] , [ 1.0 ] , [ 1.0 ] ]
Manish Kumar Sem 2.wxmx 5 / 7

Since limit point comes out to be 1, root test


is inconclusive.

5 Question 2

➔ kill(all);
(%o0) done

➔ x[n]=0.8^n;
n
(%o1) xn = 0.8

➔ count:1;
for n:1 thru 1000
do(if(abs(x[n]−0))>=10^(−3)then(count:count+1));
print("The value of N is",count);
(%o3) 1
(%o4) done
The value of N is 1
(%o5) 1

➔ kill(all);
(%o0) done

➔ x[n]:=(2^n)/n!;
n
2
(%o1) xn :=
n!

➔ count:1;
for n:1 thru 1000
do(if(abs(x[n]−0))>10^(−7)then(count:count+1));
print("The value of N is",count);
(%o2) 1
(%o3) done
The value of N is 15
(%o4) 15

6 Question 3
➔ kill(all);
(%o0) done
Manish Kumar Sem 2.wxmx 6 / 7

➔ eqn:'diff(N,t)=k·N;
d
(%o1) N =N k
dt

➔ s1:ode2(eqn,N,t);
s2:ic1(s1,t=t0,N=n0);
kt
(%o3) N = %c %e
k t − k t0
(%o4) N = n0 %e

➔ k:1/2;n0:10;t0:0;
1
(%o5)
2
(%o6) 10
(%o7) 0

➔ wxplot2d(rhs(s2),[t,0,15],[legend,"N"]);
(%t8)

(%o8)
Manish Kumar Sem 2.wxmx 7 / 7

➔ s1:ode2(eqn,N,t);
s2:ic1(s1,t=t0,N=n0);
kt
(%o9) N = %c %e
kt
(%o10) N = 10 %e

➔ k:1/2;n0:10;t0:1;
1
(%o11)
2
(%o12) 10
(%o13) 1

➔ wxplot2d(rhs(s2),[t,0,15],[legend,"N"]);
(%t14)

(%o14)

there is no difference in graph.

You might also like