mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Fix accuracy in maclaurin_series on Python 3.12
This commit is contained in:
parent
f781e34f7d
commit
04b896124a
|
@ -23,7 +23,7 @@ def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
|
||||||
>>> maclaurin_sin(10, 15)
|
>>> maclaurin_sin(10, 15)
|
||||||
-0.544021110889369
|
-0.544021110889369
|
||||||
>>> maclaurin_sin(-10, 15)
|
>>> maclaurin_sin(-10, 15)
|
||||||
0.5440211108893703
|
0.5440211108893704
|
||||||
>>> maclaurin_sin("10")
|
>>> maclaurin_sin("10")
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user