You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional validation required for ContinuedFraction objects constructed from sequences of elements with negative integers - this should only be possible if the first element (a_0 = first quotient) is negative, and negative values for a_1, a_2,... etc should be considered invalid.
# Is valid>>>ContinuedFraction.from_elements(-1, 2, 3)
ContinuedFraction(-4, 7)
# Should be invalid>>>ContinuedFraction.from_elements(1, -2, 3)
ContinuedFraction(2, 5)
* chore: bump version refs to `0.11.17`
* fix: issue #43: input validation for `ContinuedFraction.from_elements` for negative elements + update tests and docstrings
* fix: issues #40, #41: support for self-referential type annotation, input validation and instance creation for `ContinuedFraction` methods
* docs: RST typesetting fixes + improvements
Additional validation required for
ContinuedFraction
objects constructed from sequences of elements with negative integers - this should only be possible if the first element (a_0 = first quotient) is negative, and negative values fora_1, a_2,...
etc should be considered invalid.Changes required in
continuedfraction.ContinuedFraction.from_elements
Test cases should be updated and/or added.
Docstrings and documentation should be updated as appropriate.
The text was updated successfully, but these errors were encountered: