|
|
last edited 10 years ago by test1 |
1 2 3 4 | ||
Editor: kratt6
Time: 2007/12/28 16:55:06 GMT-8 |
||
Note: |
added:
From kratt6 Fri Dec 28 16:55:06 -0800 2007
From: kratt6
Date: Fri, 28 Dec 2007 16:55:06 -0800
Subject:
Message-ID: <20071228165506-0800@axiom-wiki.newsynthesis.org>
Category: Axiom on Linux => Axiom Interpreter
The sequence of commands
gl:=[x+y=1,x-y=1]
![]() | (1) |
Type: List(Equation(Polynomial(Integer)))
sol:=solve(gl,[x,y])
![]() | (2) |
Type: List(List(Equation(Fraction(Polynomial(Integer)))))
[map(g +-> eval(g,s)::Boolean,gl) for s in sol]
>> System error: The value (1 #(#(|y| 0 (((|%symbol|)))) NIL 1 1024) (1 . #1=(0 . 1)) (0 1 #(#(|x| 0 (((|%symbol|)))) NIL 1 512) (1 . #1#))) is not of type FIXNUM.
results in:
>> System error: Caught fatal error [memory may be damaged]
Axiom with --enable-checking says:
>> System error: Bad simple vector 0
begin{axiom} [eval(x=1,[x=1]::List EQ FRAC POLY INT)::Boolean for i in 1..1] end{axiom}
However:
[eval(x=1,[x=1]::List EQ FRAC POLY INT)::Boolean]
![]() | (3) |
Type: List(Boolean)
But worse::
[eval(x=1,[x=1])::Boolean for i in 1..1]
>> System error: The value (1 |x| (1 0 . 1)) is not of type FIXNUM.
It is even simpler:
q:EQ POLY INT:=(1=1)
![]() | (4) |
Type: Equation(Polynomial(Integer))
q::Boolean
![]() | (5) |
Type: Boolean
[q for i in 1..1]
![]() | (6) |
Type: List(Equation(Polynomial(Integer)))
--)set break break [q::Boolean for i in 1..1]
Internal Error Generated code is incorrect for equation