Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative Exponent Polynominals #351

Open
raeudigerRaeffi opened this issue Apr 30, 2022 · 3 comments
Open

Negative Exponent Polynominals #351

raeudigerRaeffi opened this issue Apr 30, 2022 · 3 comments
Labels
feature-request New feature or request

Comments

@raeudigerRaeffi
Copy link

Is there any way in which it would be possible to initialize a Polynomial with negative exponents? For example x^(-1).

@mhostetter mhostetter added the feature-request New feature or request label Apr 30, 2022
@mhostetter
Copy link
Owner

It should be possible to support Laurent polynomials. However, it would likely need to be a new class -- LaurentPoly, perhaps.

May I ask: what do you wish to do with these polynomials? If it's simply polynomial evaluation, that can be accomplished currently.

@raeudigerRaeffi
Copy link
Author

I need it for polynomial multiplication and division sadly. I already tried in the case of 1/Poly([1,0]) in order to mimic x^(-1), however, the result was always a Polynomial with coefficients of 0.

@mhostetter
Copy link
Owner

I see. I'll leave this marked as a feature request and maybe get around to it in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants