Skip to content

Add Brent's Method for root finding (numerical analysis) #14288

Add Brent's Method for root finding (numerical analysis)

Add Brent's Method for root finding (numerical analysis) #14288

Triggered via pull request October 1, 2025 18:53
Status Failure
Total duration 15s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ruff
Process completed with exit code 1.
Ruff (F841): maths/brent_method.py#L90
maths/brent_method.py:90:17: F841 Local variable `e` is assigned to but never used
Ruff (PLR1714): maths/brent_method.py#L68
maths/brent_method.py:68:12: PLR1714 Consider merging multiple comparisons: `fc not in (fa, fb)`. Use a `set` if the elements are hashable.
Ruff (W293): maths/brent_method.py#L37
maths/brent_method.py:37:1: W293 Blank line contains whitespace
Ruff (W293): maths/brent_method.py#L32
maths/brent_method.py:32:1: W293 Blank line contains whitespace
Ruff (W293): maths/brent_method.py#L27
maths/brent_method.py:27:1: W293 Blank line contains whitespace
Ruff (W293): maths/brent_method.py#L14
maths/brent_method.py:14:1: W293 Blank line contains whitespace
Ruff (W293): maths/brent_method.py#L12
maths/brent_method.py:12:1: W293 Blank line contains whitespace
Ruff (I001): maths/brent_method.py#L1
maths/brent_method.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (UP035): maths/brent_method.py#L1
maths/brent_method.py:1:1: UP035 Import from `collections.abc` instead: `Callable`