Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double ln(double x, double eps) {
- double result = 0;
- double current = 1;
- int i = 1;
- while (current > eps) {
- result += current;
- current *= -1 * (x - 1) / i;
- i++;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement