Skip to content

Accept polynomial coefficient lists in RationalFunction2 - #247

Open
chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/expdb-polynomial-inputs
Open

chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/expdb-polynomial-inputs

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

RationalFunction2([1, 2, 3], domain) raises TypeError because the constructor treats a polynomial coefficient list as a numerator/denominator pair. Recognize lists as the documented polynomial input while preserving tuple pairs and singleton inputs.

Validation: the new polynomial-input regression fails on main; all 9 tests pass with the fix when run alongside test_rationalfunction.py and test_polynomial.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant