Python
Python copied to clipboard
Theres is a problem in "maths/newton_raphson.py"
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.
I can revised this problem by create a pull request.
@SmileOfHeart Sure! Feel free to file a PR to close this issue - https://github.com/TheAlgorithms/Python/blob/master/maths/newton_raphson.py#L25
Fixed error https://github.com/TheAlgorithms/Python/pull/6332