i have a polynomial f(x)= x^3-a and i need its matlab function with parameters
function [x,err]=cubic1(a,xinit,eps) where xinit: Initial approximation eps: iterations are performed until approximate error is less than this number x: Root approximations of the function, and it is an array. relerr: Approximate errors corresponding to the iterations and it is an array.
do you have any idea ?