title: Need A Newton Raphson matlab function
body: <p>i have a polynomial f(x)= x^3-a and i need its matlab function with parameters </p>
  
  <p>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.</p>
  
  <p>do you have any idea ?</p>