Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Codigos en Pseint para Analisis Numerico - Compress PDF
Codigos en Pseint para Analisis Numerico - Compress PDF
FinProceso
Anexo: fx x 2 2x 3
y 20
15
10
0
-2 0 2 4
x
-5
.................................................................................................................................................
Programa para hallar las raíces de la función: gx e x x
Repetir
Escribir f(a)
Escribir f(b)
df(a)*f(b)
ca(b-a)/2
Si d0 Entonces
ac
Sino
bc
Fin Si
LL1
Escribir L," ELE"
Escribir a," ",b," ",f(a)," ",f(b);
Hasta Que L500
FinProceso
Anexo gx e x x
20
15
10
0
-4 -2 0 2 4
-5 x
.................................................................................................................................................
Programa para hallar las raíces de la función: fx x 2 8x 8
SubProceso funcion1 f ( x )
funcion1x^2-8*x8
Fin SubProceso
Proceso de la secante
Leer x0
leer x1
Escribir "........................."
Repetir
kk1
x2 x1-f(x1)*(x0-x1)/(f(x0)-f(x1))
Escribir "........................."
Escribir " La mejor después de: ",k," iteraciones:"
Escribir x2
FinProceso
Anexo fx x 2 8x 8
y 20
15
10
0
-2.5 0 2.5 5 7.5
-5 x
-10
...........................................................................................................................................
Programa para hallar las raíces de la función: gx x 3 e x 1
SubProceso funcion1 f ( x )
funcion1(x^3)*exp(-x)-1
Fin SubProceso
Proceso RegulaFalsi
Leer x0
leer x1
Escribir "........................."
Repetir
kk1
x2 x1-f(x1)*(x0-x1)/(f(x0)-f(x1))
Escribir "........................."
Escribir " La mejor después de: ",k," iteraciones: ",x2
FinProceso
Anexo gx x 3 e x 1
1.25
x
0 2.5 5 7.5 10
0
-1.25
-2.5
-3.75
-5
lim x x 3 e x 1 1
lim x x 3 e x 1
...........................................................................................................................................
Código con el método de Regula Falsi para la función fx x 2 8x 8
SubProceso funcion1 f ( x )
funcion1x^2-8*x8
Fin SubProceso
Proceso RegulaFalsi
Escribir "USANDO MÉTODO REGULA FALSI"
ESCRIBIR "DÉME VALOR A LA IZQUIERDA"
Leer x0
ESCRIBIR "DÉME VALOR A LA DERECHA"
leer x1
Escribir "........................."
Repetir
kk1
x2 x1-f(x1)*(x0-x1)/(f(x0)-f(x1))
Si f(x0)*f(x2)0 Entonces
x1x2
Sino
x0x2
Fin Si
Escribir "........................."
Escribir " La mejor APROXIMACIÓN DE LA RAÍZ después de: ",k," iteraciones:"
Escribir "SOLUCIÓN APROXIMADA ", x2
FinProceso
Anexo fx x 2 8x 8
y
15
10
0
0 2.5 5 7.5
x
-5
-10
...........................................................................................................................................
Código con el método de Regula Falsi para la función gx e x x
SubProceso funcion1 f ( x )
funcion1-exp(-x)x
Fin SubProceso
Proceso RegulaFalsi
Escribir "........................."
Repetir
kk1
x2 x1-f(x1)*(x0-x1)/(f(x0)-f(x1))
Escribir "........................."
Escribir " La mejor después de: ",k," iteraciones:"
Escribir x2
ESCRIBIR f(x2)
FinProceso
Anexo gx e x x
y 5
2.5
0
-2 0 2 4 6
-2.5 x
-5
-7.5
-10
SubProceso funcion1 f ( x )
funcion1x^32*x^2-4*x-8
Fin SubProceso
SubProceso funcion2 g ( x )
funcion23*x^24*x-4
Fin SubProceso
Proceso NewtonRaphson
k0
Repetir
kk1
Escribir k," ",f(k)
Hasta Que k4
k0
Escribir "........................."
Repetir
kk1
Escribir k," ",g(k)
Hasta Que k4
Escribir "........................."
a3
Repetir
kk1
ra-f(a)/g(a)
ar
Escribir r
Hasta Que k12
FinProceso
Anexo fx x 3 2x 2 4x 8
y 20
15
10
0
-4 -2 0 2 4
-5 x
-10
x 3 2x 2 4x 8 x 2x 2 2
...........................................................................................................................................
Código usando el método de Newton Raphson para la función: gx 4x 2 e x
SubProceso funcion1 f ( x )
funcion14*x^2-exp(x)
Fin SubProceso
SubProceso funcion2 g ( x )
funcion28*x-exp(x)
Fin SubProceso
Proceso NewtonRaphson
k0
Escribir "........................."
Leer a
Repetir
kk1
ra-f(a)/g(a)
ar
Escribir r," ",f(r2)
Hasta Que k10
FinProceso
Anexo gx 4x 2 e x
15
10
0
-2 0 2 4
x
-5