Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programming Question

0 views
Skip to first unread message

M.A.Fajjal

unread,
Jul 4, 2009, 11:39:49 PM7/4/09
to
Hi

I have the following query

maple('G :=factor(x^2-5*x+6)')
ans =
G := (x-2)*(x-3)

How can the first brackets be assigned by programming to G1 and second brackets to G2 such that G=G1*G2 i.e getting the ans

G1 := (x-2)
G2 := (x-3)

A N Niel

unread,
Jul 5, 2009, 5:35:29 AM7/5/09
to
In article
<18232610.74370.1246765...@nitrogen.mathforum.org>,
M.A.Fajjal <h2...@yahoo.com> wrote:

Within Maple you could could use the first and second operands of G...
G :=factor(x^2-5*x+6);
G1 := op(1,G);
G2 := op(2,G);

0 new messages