Re: Factorizing an expression

Themos Tsikas <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Organization NAG Ltd
Message-ID <[email protected]>
(1) -> (a/b)^2 + (a/b)*y + 3*(a/b)*x

                          2
        a b y + 3a b x + a
   (1)  -------------------
                  2
                 b
                                            Type: Fraction Polynomial Integer
(2) -> eval(%,[a=b*R])

                      2
   (2)  R y + 3R x + R
                                            Type: Fraction Polynomial Integer
(3) -> factorFraction %

   (3)  R(y + 3x + R)
                                   Type: Fraction Factored Polynomial Integer


The rest is a visual cheat


(4) -> r:Symbol:="a/b"

   (4)  a/b
                                                                 Type: Symbol
(5) -> eval(%% 3,[R=r])

                            2
   (5)  a/b y + 3a/b x + a/b
                                            Type: Fraction Polynomial Integer
(6) -> factorFraction %

   (6)  a/b(y + 3x + a/b)
                                   Type: Fraction Factored Polynomial Integer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.