Académique Documents
Professionnel Documents
Culture Documents
============
clear
>> E=linspace(0,pi/2,100);
>> f=E-(0.96727464)*sin(E)-4.527594*10.^-3;
>> plot(E,f)
>> xlabel('eje x')
>> ylabel('eje y')
>> title('Ecuacion de Kepler')
>> grid on
>> syms E
>> f=E-(0.96727464)*sin(E)-4.527594*10.^-3;
>> pretty(f)
8712435416537861 sin(E)
E - ----------------------- - 1304990121682233/288230376151711744
9007199254740992
>> derif=diff(f)
derif =
1 - (8712435416537861*cos(E))/9007199254740992
METODO DE NEWTON
****************
Ingrese
Ingrese
;
Ingrese
Ingrese
la funcion a resolver:x-(0.96727464)*sin(x)-4.527594*10.^-3;
la derivada de la funcion:1 - (8712435416537861*cos(x))/9007199254740992
una aproximacion inicial:1
la precision requerida:0.00005
Iteracion
---------
Raiz aproximada
---------------
1.00
0.62
0.37
0.21
0.14
0.13