All pastes #221358 Raw Edit

Newton's Method

public c v1 · immutable
#221358 ·published 2006-10-25 17:24 UTC
rendered paste body
/* a program using Newton's Method */#include <stdio.h>#include <ctype.h>#include <conio.h>#include <math.h>double guess;int times ;float end;int count = 1;main(){      printf( "Enter starting number\n"); /* asks user to enter x-naut */      scanf(" %Lf", &guess); /* assigns the variable "guess" a value */      printf( "Enter number of iterations\n"); /* requests number of iterations */      scanf(" %d", &times); /* assigns the variable "times" a value */            for (count = 1; count <= times; count++)      {           (guess = pow(guess,(5)) / (5 * pow(guess,(4)))); // Put function here using the math.h libary          printf( "%10.15f\n", guess);          }                getch(); /* pauses so the user can read output */           return 0;           }