Skip to content

Working with univariate polynomial ideals? #3504

Answered by fieker
oskarhenriksson asked this question in Q&A
Discussion options

You must be logged in to vote

There are several things, but I guess some would be (can be) highly confusing. The most important difference, from a proactical point of view, is the different interface to the internals (coefficients, ...). Univariate are always dense, multivariate types are sparse.
Thus for f = x^3-2, a call to coeff(f, 0) will give -2 in the univariate case and an error in the multivariate. In the multivariate case, coeff(f, 1) -> 1, coeff(f, 2) -> -2 and all others error. This allows to implement different algorithms for arithmetic

  • univariate multiplication of 2 degree n polynomials can be done in O(n log(n) operations
  • multivariate of 2 polynomials with n terms is O(n^2)

However that means in the un…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fieker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants