Académique Documents
Professionnel Documents
Culture Documents
Tarea #1 Métodos
Numéricos
VALENTINA MARULANDA GÓMEZ
Bisección: La suma de dos números es 20. Si cada uno se agrega a su raíz cuadrada, el
producto de las dos sumas es 155,55. Determine los dos números con una exactitud de
10−4.
𝑥 + 𝑦 = 20
(𝑥 + √𝑥)(𝑦 + √𝑦) = 155.55
𝑦 = 20 − 𝑥
(𝑥 + √𝑥)(20 − 𝑥 + √20 − 𝑥) − 155.55 = 0
2
300 − 80.425𝑡 + 201.0625 (1 − 𝑒 −5𝑡 ) = 0
2
300 + 201.0625 (1 − 𝑒 −5𝑡 )
𝑔(𝑡) =
80.425
Newton y Extensiones: Una partícula parte del reposo sobre un plano inclinado
uniforme, cuyo ángulo θ cambia con una tasa constante de
Suponga que la partícula se desplaza 1,7 pies en 1 s. Encuentre, con una exactitud
de 10−5, la tasa ω a la que θ cambia. Suponga que g = 32,17 pies/s2.
16.085 𝑒 𝜔 − 𝑒 −𝜔
1.7 = − ( − 𝑠𝑖𝑛𝜔)
𝜔2 2
16.085 𝑒 𝜔 − 𝑒 −𝜔
− ( − 𝑠𝑖𝑛𝜔) − 1.7 = 0
𝜔2 2
This is the Secant Method
Input the function F(x) in terms of x
For example: cos(x)
(-16.085/x^2)*(((exp(x)-exp(-x))/2)-sin(x))-1.7
Input initial approximations P0 and P1 on separate lines.
-1
1
Input tolerance
10^-5
Input maximum number of iterations - no decimal point
100
Select output destination
1. Screen
2. Text file
Enter 1 or 2
1
Select amount of output
1. Answer only
2. All intermediate approximations
Enter 1 or 2
2
Secant Method
I P F(P)
2 -3.16688531e-01 -2.00132590e-03
3 -3.17061459e-01 -1.69383771e-06
4 -3.17061775e-01 2.42250664e-13
[ 1 0 -2 4 ]
Input tolerance
0.0001
50
16
18
20
1. Screen
2. Text file
Enter 1 or 2
MULLERS METHOD
Method Succeeds
in 8 iterations
0.10000000 1.10517092
0.20000000 1.22140276 1.37637854
0.30000000 1.34985881 1.39267749 1.39539398
0.40000000 1.49182470 1.39718077 1.39567968 1.39561619
0.50000000 1.64872127 1.38722698 1.39552181 1.39560951 1.39561229
0.60000000 1.82211880 1.35972539 1.39639418 1.39561874 1.39561259 1.39561243
0.70000000 2.01375271 1.31109505 1.40025067 1.39553718 1.39561194 1.39561241
1.39561242
0.80000000 2.22554093 1.23719590 1.40962725 1.39504146 1.39561980 1.39561246
1.39561243 1.39561243
6.90000000 1.37977471
7.00000000 1.38308755 1.39597636
7.10000000 1.38636119 1.39582382 1.39560337
7.20000000 1.38959662 1.39571341 1.39560903 1.39561259
7.30000000 1.39279482 1.39564301 1.39561167 1.39561245 1.39561242
7.40000000 1.39595672 1.39561068 1.39561245 1.39561242 1.39561243 1.39561243
7.50000000 1.39908321 1.39561456 1.39561241 1.39561243 1.39561243 1.39561243
1.39561243
3
RESPUESTA: La aproximación de √𝑒 es 1.39561243
0.0000000000e+00
7.5000000000e+01
0.0000000000e+00
2.2222222222e-01
-3.1111111111e-02
-6.4444444444e-03
2.2638888889e-03
-9.1319444444e-04
1.3052679158e-04
-2.0223631973e-05
Do you wish to evaluate this polynomial?
Enter Y or N
Y
Enter a point at which to evaluate
10
x-value and interpolated-value
1.0000000000e+01 7.4250283910e+02
RESPUESTA: La posición es 7.4250283910e+02 a los 10s
Spline cubico sujeto: Mediante interpolantes de Spline cubico sujeto, aproxime la parte
superior del perro que se muestra en la figura,
This is Clamped Cubic Spline Interpolation.
Choice of input method:
1. Input entry by entry from keyboard
2. Input data from a text file
3. Generate data using a function F with nodes entered from keyboard
4. Generate data using a function F with nodes from a text file
Choose 1, 2, 3, or 4 please
1
Input n
17
Input X(0) and F(X(0)) on separate lines
1
3
Input X(1) and F(X(1)) on separate lines
2
3.7
Input X(2) and F(X(2)) on separate lines
5
3.9
Input X(3) and F(X(3)) on separate lines
6
4.2
Input X(4) and F(X(4)) on separate lines
7
5.7
Input X(5) and F(X(5)) on separate lines
8
6.6
Input X(6) and F(X(6)) on separate lines
10
7.1
Input X(7) and F(X(7)) on separate lines
13
6.7
Input X(8) and F(X(8)) on separate lines
17
4.5
Input X(9) and F(X(9)) on separate lines
20
7
Input X(10) and F(X(10)) on separate lines
23
6.1
Input X(11) and F(X(11)) on separate lines
24
5.6
Input X(12) and F(X(12)) on separate lines
25
5.8
Input X(13) and F(X(13)) on separate lines
27
5.2
Input X(14) and F(X(14)) on separate lines
27.7
4.1
Input X(15) and F(X(15)) on separate lines
28
4.3
Input X(16) and F(X(16)) on separate lines
29
4.1
Input X(17) and F(X(17)) on separate lines
30
3
Enter F'(X(0)) and F'(X(N)) on separate lines
1
-1.5
Select output destination
1. Screen
2. Text file
Enter 1 or 2
1
CLAMPED CUBIC SPLINE INTERPOLATION