Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define N 0.0001
- double LN_Newton(double x)
- {
- double x0=x;
- while((EXP_T(x0)-x)>N || (EXP_T(x0)-x<-N))
- {
- x0=x0-1+(x/EXP_T(x0));
- }
- return x0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement