TheAlgorithms-Python/arithmetic_analysis
Kamil 4246da387f
jacobi_iteration_method.py the use of vector operations, which reduces the calculation time by dozens of times (#8938)
* Replaced loops in jacobi_iteration_method function with vector operations. That gives a reduction in the time for calculating the algorithm.

* Replaced loops in jacobi_iteration_method function with vector operations. That gives a reduction in the time for calculating the algorithm.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Delete main.py

* Update jacobi_iteration_method.py

Changed a line that was too long.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update jacobi_iteration_method.py

Changed the type of the returned list as required.

* Update jacobi_iteration_method.py

Replaced init_val with new_val.

* Update jacobi_iteration_method.py

Fixed bug: init_val: list[int]  to  list[float].
Since the numbers are fractional: init_val = [0.5, -0.5, -0.5].

* Update jacobi_iteration_method.py

Changed comments, made variable names more understandable.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update jacobi_iteration_method.py

left the old algorithm commented out, as it clearly shows what is being done.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update jacobi_iteration_method.py

Edits upon request.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-11 13:05:32 +02:00
..
image_data Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
bisection.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
gaussian_elimination.py Refactorings (#8987) 2023-08-20 16:43:09 -07:00
in_static_equilibrium.py Fix doctests and builds in various files (#6233) 2022-07-06 10:00:05 +02:00
intersection.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
jacobi_iteration_method.py jacobi_iteration_method.py the use of vector operations, which reduces the calculation time by dozens of times (#8938) 2023-09-11 13:05:32 +02:00
junk.py Update actions/checkout with fetch-depth: 0 (#9046) 2023-09-09 19:58:43 +02:00
lu_decomposition.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
newton_forward_interpolation.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
newton_method.py refactor: Indent ... for visual purposes (#7744) 2022-10-27 19:42:30 +02:00
newton_raphson_new.py Replace bandit, flake8, isort, and pyupgrade with ruff (#8178) 2023-03-15 13:58:25 +01:00
newton_raphson.py Fix failing tests from ruff/newton_raphson (ignore S307 "possibly insecure function") (#8862) 2023-07-11 11:51:21 +02:00
README.md Add README files 1/7 (#5754) 2021-11-04 18:49:36 +08:00
secant_method.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00

Arithmetic analysis

Arithmetic analysis is a branch of mathematics that deals with solving linear equations.