I have written a program to find the reciprocal of an input number by using newton rhapson iterative method. Below is the algorithm implementation in C:
When I enter 3 as my input number, i get an absurd answer. On using hand-calculations on paper, I am converging to the right value of the reciprocal which is .33. Kindly point out the errors. Thank you.
printf("Enter the input number");
printf("Enter the guess for the reciprocal of the input number between -1.0 and 1.0");
printf("The reciprocal of the input number is %f",newguess);