mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-14 02:29:48 +00:00
`error = abs(f(a))` was declared on line 24 and line 32. It is unnecessary to have in both places.
I removed the second instance since it wastes resources to keep redefining the variable inside the for loop.
This fixes an [issue found by lgtm](66c4afbd0f/files/maths/newton_raphson.py
)