mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Upgrade to Python 3.12 (#9576)
* DRAFT: GitHub Actions: Test on Python 3.12 Repeats #8777 * #8777 Some of our dependencies will not be ready yet. * Python 3.12: Disable qiskit and tensorflow algorithms * updating DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -17,9 +17,9 @@ def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
|
||||
>>> all(isclose(maclaurin_sin(x, 50), sin(x)) for x in range(-25, 25))
|
||||
True
|
||||
>>> maclaurin_sin(10)
|
||||
-0.544021110889369
|
||||
-0.5440211108893691
|
||||
>>> maclaurin_sin(-10)
|
||||
0.5440211108893703
|
||||
0.5440211108893704
|
||||
>>> maclaurin_sin(10, 15)
|
||||
-0.5440211108893689
|
||||
>>> maclaurin_sin(-10, 15)
|
||||
@@ -69,9 +69,9 @@ def maclaurin_cos(theta: float, accuracy: int = 30) -> float:
|
||||
>>> all(isclose(maclaurin_cos(x, 50), cos(x)) for x in range(-25, 25))
|
||||
True
|
||||
>>> maclaurin_cos(5)
|
||||
0.28366218546322675
|
||||
0.2836621854632268
|
||||
>>> maclaurin_cos(-5)
|
||||
0.2836621854632266
|
||||
0.2836621854632265
|
||||
>>> maclaurin_cos(10, 15)
|
||||
-0.8390715290764525
|
||||
>>> maclaurin_cos(-10, 15)
|
||||
|
||||
Reference in New Issue
Block a user