|
|
last edited 16 years ago by kratt6 |
1 2 | ||
Editor: kratt6
Time: 2007/12/20 01:43:19 GMT-8 |
||
Note: |
added:
From kratt6 Thu Dec 20 01:43:19 -0800 2007
From: kratt6
Date: Thu, 20 Dec 2007 01:43:19 -0800
Subject:
Message-ID: <20071220014319-0800@axiom-wiki.newsynthesis.org>
Category: Axiom Mathematics => Axiom Interpreter
Status: open => rejected
simplify takes an 'EXPR INT', not a 'POLY INT'. The interpreter does the coercion silently for you.
factor(simplify((1+x)^3))
(1) |
Type: Factored(Expression(Integer))
vs.
factor((1+x)^3)
(2) |
Type: Factored(Polynomial(Integer))
simplify changes the type to Expression Integer
, where the original was Polynomial Integer
.
Why does factor refuse to factor an Expression Integer but succeeds with Polynomial Integer?
simplify((1+x)^3)
(3) |
Type: Expression(Integer)
factor(%::Polynomial Integer)
(4) |
Type: Factored(Polynomial(Integer))
simplify takes an EXPR INT
, not a POLY INT
. The interpreter does the coercion silently for you.