Chebyshev Method
Versión 1.0.0 (1,36 KB) por
Praveen Prasad Handigol
A simple code for demonstration of the "Chebyshev Method" , to solve various polynomial and transcendental equations
syms x;
f=input('Enter the function:'); %Enter the function
n=input('Enter the number of decimal places:');
x0 = input('Enter the intial approximation:');
f1 = diff(f); %derivative of function
f2 = diff(f,2); %double derivative of function
for i=1:100
A=subs(f,x,x0); %Calculates the value of f at x0
B=subs(f1,x,x0); %Calculates the value of f1 at x0
C=subs(f2,x,x0); %Calculates the value of f2 at x0
y=x0-(A/B)-(0.5*(A^2/B^2)*(C/B)); %chebyshev formula
y = round(y,n);
if y == x0 %checking the amount of error at each iteration
break
end
x0=y;
end
fprintf('The Root is : %f \n',y);
fprintf('No. of Iterations : %d\n',i);
Citar como
Praveen Prasad Handigol (2025). Chebyshev Method (https://es.mathworks.com/matlabcentral/fileexchange/105215-chebyshev-method), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2021b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
