Hi,

What is the correct way to factor polynomials in spad code?


Assume I have some ring R (maybe Z):

  R : UniqueFactorizationDomain

and then polynomials like:

  UP ==> SparseUnivariatePolynomial(R)

  p : UP := x^3 + 3*x^2 + x + 3

and I wish to factor over the ring given. In the interpreter
I get what I want by:

  factor(p)

having type: Factored(SparseUnivariatePolynomial(Integer))
By using:

  factors factor(p) 

I even get something I can iterate over. (factorList(p) might
also to be useful.) My problem is now that I failed to
bring this into spad code ...

There are just too many Polynomial things and factor functions
to choose from.


Thanks for any pointer.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to