added:
From kratt6 Fri Dec 28 14:56:30 -0800 2007
From: kratt6
Date: 2007年12月28日 14:56:30 -0800
Subject:
Message-ID: <20071228145630-0800@axiom-wiki.newsynthesis.org>
Category: Axiom Mathematics => Axiom Library
(1) -> factor ((y-1) * x + y - 1)
factor ((y-1) * sin x + y - 1) -- does nothing
EXPR is a field...
Martin
To get what the OP wanted, recast the problem as a Polynomial:
f:=(y-1)*sin(x)+y-1 -- original function
g:=subst(f, sin(x)=sx)::Polynomial Integer -- remove the nonlinear operators, then recast
h:=factor(g) -- yields (sx + 1)(y - 1)
Unfortunately, any conversion of h from a "Factored Polynomial Integer" to a "Factored Expression Integer" will destroy the factorization.