Asiignment 2 Numerical
Asiignment 2 Numerical
n
X n
X n
X
|x(i) + y(i) |p ≤ |x(i) + y(i) |(p−1) |x(i) | + |x(i) + y(i) |(p−1) |y(i) |
i=1 i=1 i=1
p
Now letting q = (p−1) and applying Hölder’s inequality to each of the sum-
mations on the right -hand side, yields :
n n
! q1 n
! p1 n
! p1
X X X X
|x(i) +y(i) |p ≤ |x(i) + y(i) |(p−1)q |x(i) |p + |y(i) |p
i=1 i=1 i=1 i=1
n n
! q1 n
! p1 n
! p1
X X X X
|x(i) +y(i) |p = |x(i) + y(i) |p |x(i) |p + |y(i) |p ......... Eqn. 1
i=1 i=1 i=1 i=1
Pn q1
Next, dividing both sides of Eqn. 1 by i=1 |x(i) + y(i) |p and using the
fact that 1 − 1q = p1 we obtain,
n
! q1 n
! p1 n
! p1
X X X
p p p
|x(i) + y(i) | ≤ |x(i) | + |y(i) |
i=1 i=1 i=1
1
Figure 1: y=tanh(x)
Figure 2: y=sinh(-x)
X Y
0 1
Q3 0.5 1.6487
0.75 2.1170
1 2.7183
P P 2 P
Pn P X2 P X3 a0 P Y
S P X PX P X4
a1 =
P XY
X2 X3 X a2 X 2Y
5.0000 2.5000 1.8750 a0 8.7680
2.5000 1.8750 1.5625 a1 = 5.4514
1.8750 1.5625 1.3828 a2 4.4015
5.0000 2.5000 1.8750 a0 8.7680
ty LetA = 2.5000 1.8750 1.5625 , X = a1 and B = 5.4514
1.8750 1.5625 1.3828 a2 4.4015
The matrix A is
i Symmetric since A = AT
ii Positive definate
A1 = 5, det(A1 ) > 0
5.000 2.500
A2 = , det(A2 ) = 3.125 > 0
2.500 1.875
A3 = A, det(A) = 0.1709 > 0
Hence the cholesky method can be used
Let A = LLT
a11 a12 a13 l11 0 0 l11 l21 l31
a21 a22 a23 = l21 l22 0 0 l22 l32
a31 a32 a33 l31 l32 l33 0 0 l33
2
2.2361 0 0
Hence L = 1.1180 0.7906 0
0.8385 0.7906 0.2338
3
0.6853
⇒ a1 = 0.7906 = 0.8668
From the method of least square the approximated 2nd order polynomial of
the data points is given as
y = a0 + a1 x + a2 x2
= 1.0047 + 0.8668x + 0.8413x2