Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update maths/maclaurin_sin.py
Co-authored-by: Caeden Perelli-Harris <[email protected]>
  • Loading branch information
ChrisO345 and CaedenPH authored Oct 20, 2022
commit d03beffad3e0f1618ed7d5c28a9ce387701d3808
2 changes: 1 addition & 1 deletion maths/maclaurin_sin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
if (
not isinstance(accuracy, int)
or accuracy <= 0
or type(theta) not in [int, float]
or not isinstance(theta, (int, float))
):
raise ValueError(
"maclaurin_sin() requires int/float for theta and +ive int for accuracy"
Expand Down