OK my problem is my initial conditions, as all i have done is put halleys method into newtons method. I need to "using an initial condition value of x1=1000, apply this iterative procedure to f(x) untill |f(xn)|<10^-10 or the number of iterations is 1000, also my program needs to oputput the number of iterations and the root to 10 signif figures. my code has found x to 10 signifs not f(xn) apparently i need to make it like a controlled bisection, and have an || and && statements somewhere... i litterally have no idea how to do this... please can someone help me?