You are on page 1of 10

y = a + bx + cx^2 + dx^3

a= 1
b= 3
c= -7
d= 3

x y
-2 -57
-1.9 -50.547
-1.8 -44.576
-1.7 -39.069
-1.6 -34.008
-1.5 -29.375
-1.4 -25.152
-1.3 -21.321
-1.2 -17.864
-1.1 -14.763
-1 -12
-0.9 -9.557
-0.8 -7.416
-0.7 -5.559
-0.6 -3.968
-0.5 -2.625
-0.4 -1.512
-0.3 -0.611
-0.2 0.096
-0.1 0.627
0 1
0.1 1.233
0.2 1.344
0.3 1.351
0.4 1.272
0.5 1.125
0.6 0.928
0.7 0.699
0.8 0.456
0.9 0.217
1 0
1.1 -0.177
1.2 -0.296
1.3 -0.339
1.4 -0.288
1.5 -0.125
1.6 0.168
1.7 0.609
1.8 1.216
1.9 2.007
2 3
y=a + bx + cx^2 + dx^3
4

0
-1 -0.5 0 0.5 1 1.5 2 2.5
-2
y

-4

-6

-8

-10
x
Newton's Method Secant Method
#VALUE! #VALUE!
#VALUE! #VALUE!
#VALUE! #VALUE!
Rn 1 = 6000
Rn 2 = 12000
Rn = 12000
Compute Cf
Cf = 0.0124
F(x) = -2.52E-07

# Rn Cf
1 6000 0.0152 Cf vs RN
2 6300 0.0150 0.0160
3 6600 0.0148
4 6900 0.0146 0.0150
5 7200 0.0144
6 7500 0.0142 0.0140
7 7800 0.0141
0.0130
8 8100 0.0139
Cf

9 8400 0.0138 0.0120


10 8700 0.0136
11 9000 0.0135 0.0110
12 9300 0.0134
13 9600 0.0132 0.0100
14 9900 0.0131 5000 6000 7000 8000 9000 10000 11000 12000 13000
15 10200 0.0130 RN
16 10500 0.0129
17 10800 0.0128
18 11100 0.0127
19 11400 0.0126
20 11700 0.0125
21 12000 0.0124
Test Scenario

0.012405074

Page 5
Solve Linear System by Matrix Inversion:

[A][x] = [b]

9.375 3.042 -2.437


[A] = 3.042 6.183 1.216
-2.437 1.216 8.443

9.233
[b] = 8.205
3.934

0.148 -0.084 0.055


Inv[A] = -0.084 0.214 -0.055
0.055 -0.055 0.142

0.896
[x] = Inv[A] [b] = 0.765
0.614
Using Solver with Constraints:
a1*x1 + a2*x2 + a3*x3 = b

a1 a2 a3 x b
(1) 9.375 3.042 -2.437 0.896 9.233
(2) 3.042 6.183 1.216 0.765 8.205
(3) -2.437 1.216 8.443 0.614 3.934

Using Solver to Minimize Squared Residuals:


a1*x1 + a2*x2 + a3*x3 = b

a1 a2 a3 x b
(1) 9.375 3.042 -2.437 0.896 9.233
(2) 3.042 6.183 1.216 0.765 8.205
(3) -2.437 1.216 8.443 0.614 3.934
a1*x1 + a2*x2 + a3*x3
9.233
8.205
3.934

a1*x1 + a2*x2 + a3*x3 r^2


9.233 1.06E-13
8.205 1.10E-13
3.934 3.07E-14
2.47E-13
0.5
f(x) g(x)
x y+ y- y
-0.5 0 0 -0.648721 0.4
-0.48 0.093333 -0.093333 -0.616074 9y^2+4x^2=1
-0.46 0.130639 -0.130639 -0.584074
-0.44 0.158325 -0.158325 -0.552707
0.3
-0.42 0.180862 -0.180862 -0.521962
-0.4 0.2 -0.2 -0.491825 0.2
-0.3 0.266667 -0.266667 -0.349859
-0.2 0.305505 -0.305505 -0.221403
-0.1 0.326599 -0.326599 -0.105171 0.1
0 0.333333 -0.333333 0
0.1 0.326599 -0.326599 0.095163 0
0.2 0.305505 -0.305505 0.181269 -0.5 -0.4 -0.3 -0.2 -0.1 0
0.3 0.266667 -0.266667 0.259182
0.4 0.2 -0.2 0.32968 -0.1
0.42 0.180862 -0.180862 0.342953
0.44 0.158325 -0.158325 0.355964 -0.2
0.46 0.130639 -0.130639 0.368716
0.48 0.093333 -0.093333 0.381217
0.5 0 0 0.393469 -0.3

-0.4

-0.5

x= -0.252778 0.306005
f(x) = -0.287598 -0.25278
g(x) = -0.287598

(f-g)^2 = 1.62E-22
0.5

y=1-e^(-x)
0.4

0.3

0.2

0.1

0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
-0.1

-0.2

-0.3

-0.4

-0.5

You might also like