Kamil 9a5a6c663c
carmichael_number - add doctests (#10038)
* Replacing the generator with numpy vector operations from lu_decomposition.

* Revert "Replacing the generator with numpy vector operations from lu_decomposition."

This reverts commit ad217c66165898d62b76cc89ba09c2d7049b6448.

* Added doctests

* Update carmichael_number.py

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

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

* Update carmichael_number.py

I make an empty commit to reset:
tests are failing.

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

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

* Update carmichael_number.py

Made changes taking into account the addition: 
from maths.greatest_common_divisor import greatest_common_divisor.

Now instead of gcd it is used: greatest_common_divisor.

* Update carmichael_number.py

* Update carmichael_number.py

* Update carmichael_number.py

I added a check for 0 and negative numbers in the tests and the code itself. Simplified obtaining the final result.

* Update carmichael_number.py

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

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

* Update maths/carmichael_number.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>

* Update carmichael_number.py

* Update carmichael_number.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
2023-10-10 16:14:13 -04:00
..
2023-08-09 13:25:30 +05:30
2023-03-01 17:23:33 +01:00
2023-08-20 16:39:29 -07:00
2023-08-09 13:25:30 +05:30
2022-11-01 10:50:50 +13:00
2022-06-22 12:04:18 +08:00
2023-05-26 09:34:17 +02:00
2022-10-12 20:41:52 +02:00
2023-08-09 13:25:30 +05:30
2022-10-12 20:42:30 +02:00
2023-10-06 14:46:58 -04:00
2023-01-10 23:47:02 +01:00
2023-10-05 08:30:43 -04:00
2023-08-09 13:25:30 +05:30
2023-05-17 12:08:56 +12:00
2022-07-14 12:54:24 +05:30
2023-05-26 09:34:17 +02:00
2023-05-26 09:34:17 +02:00
2023-05-26 09:34:17 +02:00
2022-10-23 13:17:30 +02:00
2020-01-18 13:24:33 +01:00
2022-05-16 19:28:30 +08:00
2022-10-16 09:43:29 +02:00
2023-10-01 16:46:12 +02:00
2021-08-15 21:15:53 +02:00
2023-05-26 09:34:17 +02:00
2021-08-15 21:15:53 +02:00
2023-08-09 13:25:30 +05:30
2022-10-12 22:42:02 +02:00