Skip to content

DOC: clarify leading zeros in polydiv divisors - #33436

Open
hector2394 wants to merge 1 commit into
numpy:mainfrom
hector2394:contribution/33422-polydiv-docs
Open

hector2394 wants to merge 1 commit into
numpy:mainfrom
hector2394:contribution/33422-polydiv-docs

Conversation

@hector2394

Copy link
Copy Markdown
Contributor

PR summary

Refs #33422.

Clarify that the legacy np.polydiv requires a divisor with a nonzero first coefficient. Add an example using numpy.polynomial.polynomial.polydiv, showing its ascending coefficient order and handling of the equivalent divisor.

All five docstring examples passed, along with Ruff and git diff --check. The full documentation build was not run because the required tooling was unavailable locally.

AI Disclosure

Codex investigated the issue and ran local checks. I wrote the changes.

A leading zero in the legacy divisor causes division by zero.
Show the equivalent call with the modern polynomial API.

Co-authored-by: Charles Harris <[email protected]>

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant