Hello,
I was a bit surprised by the session below. Isn't it a bit confusing to
return 2 as a *unit* when the object is a polynomial over the *integers*?
Of course, "unit" in Factored might mean something else than "unit" in
integers, but
(a) it's still confusing and
(b) it's not exactly defined in the docstring of Factored, what "unit"
actually means.
Ralf
(6) -> a := 2*(7*x+5)
(6) 14x + 10
Type: Polynomial(Integer)
(7) -> factor a
(7) 2(7x + 5)
Type: Factored(Polynomial(Integer))
(8) -> factors factor a
(8) [[factor= 7x + 5,exponent= 1]]
Type: List(Record(factor: Polynomial(Integer),exponent: Integer))
(10) -> unit a
(10) 2
(11) -> unit? unit a
(11) false
Type: Boolean
--
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 https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.