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

Add polynomial composition #377

Merged
merged 7 commits into from Jul 21, 2022
Merged

Add polynomial composition #377

merged 7 commits into from Jul 21, 2022

Conversation

mhostetter
Copy link
Owner

In [1]: import galois

In [2]: GF = galois.GF(31)

In [3]: f = galois.Poly([1, 0, 0, 15], field=GF); f
Out[3]: Poly(x^3 + 15, GF(31))

In [4]: g = galois.Poly.Degrees([3], field=GF); g
Out[4]: Poly(x^3, GF(31))

In [5]: f(g)
Out[5]: Poly(x^9 + 15, GF(31))

@mhostetter mhostetter added poly Related to polynomials new-feature A new feature labels Jul 21, 2022
@mhostetter mhostetter linked an issue Jul 21, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jul 21, 2022

Codecov Report

Merging #377 (0e0a591) into master (371d7b1) will increase coverage by 0.00%.
The diff coverage is 93.90%.

@@           Coverage Diff           @@
##           master     #377   +/-   ##
=======================================
  Coverage   96.70%   96.70%           
=======================================
  Files          42       42           
  Lines        5213     5222    +9     
=======================================
+ Hits         5041     5050    +9     
  Misses        172      172           
Impacted Files Coverage Δ
galois/_polys/_dense.py 97.83% <ø> (-0.08%) ⬇️
galois/_polys/_poly.py 96.43% <93.86%> (+0.08%) ⬆️
galois/_fields/_factory.py 96.52% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 371d7b1...0e0a591. Read the comment docs.

@mhostetter mhostetter merged commit e6acdfd into master Jul 21, 2022
@mhostetter mhostetter deleted the poly-composition branch July 21, 2022 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature poly Related to polynomials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add polynomial composition f(g(x))
1 participant