Python icon indicating copy to clipboard operation
Python copied to clipboard

Theres is a problem in "maths/newton_raphson.py"

Open SmileOfHeart opened this issue 3 years ago • 3 comments

In file "maths/newton_raphson.py", there is a error in function "newton_raphson()". It likes that variables "error" was not refreshed in for-iterator process。So we need to recalculate the "error" in for-loop block, otherwise the iteration will never finish.

SmileOfHeart avatar Jul 08 '22 12:07 SmileOfHeart

I can revised this problem by create a pull request.

SmileOfHeart avatar Jul 08 '22 12:07 SmileOfHeart

@SmileOfHeart Sure! Feel free to file a PR to close this issue - https://github.com/TheAlgorithms/Python/blob/master/maths/newton_raphson.py#L25

poyea avatar Jul 14 '22 14:07 poyea

Fixed error https://github.com/TheAlgorithms/Python/pull/6332

AmilaMadushan avatar Aug 16 '22 13:08 AmilaMadushan