Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #define N 0.0001
  2. double LN_Newton(double x)
  3. {
  4. double x0=x;
  5. while((EXP_T(x0)-x)>N || (EXP_T(x0)-x<-N))
  6. {
  7.     x0=x0-1+(x/EXP_T(x0));
  8.  
  9.  
  10. }
  11.  
  12. return x0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement