|
|
last edited 10 years ago by test1 |
1 2 3 | ||
Editor: kratt6
Time: 2009/04/19 06:54:05 GMT-7 |
||
Note: fixed in FriCAS revision 583 |
added:
From kratt6 Sun Apr 19 06:54:05 -0700 2009
From: kratt6
Date: Sun, 19 Apr 2009 06:54:05 -0700
Subject: fixed in FriCAS revision 583
Message-ID: <20090419065405-0700@axiom-wiki.newsynthesis.org>
Status: open => fixed somewhere
It seems that the interpreter handles strangely the power series:
a:= series sin(x)
(1) |
)di type a
Type of value of a: Any -- If I coerce it... a:=a::UnivariatePuiseuxSeries(Expression Float,x, 0)
(2) |
)di type a
Type of value of a: UnivariatePuiseuxSeries(Expression(Float),x, 0.0) a*1.0
(3) |
a:= series sin(x); a*1.0; >> System error: Caught fatal error [memory may be damaged] protected-symbol-warn called with (NIL)
From trace it seems that the interpreter doesn't coerce one args in Expression (Float):
1<enter valueArgsEqual? : (|UnivariatePuiseuxSeries| (|Expression| (|Integer|)) |x| ((0 . 0) 0 . 1))\ (|UnivariatePuiseuxSeries| (|Expression| (|Float|)) |x| ((0 . 0) 0 . 1)) ...
And here:
1<enter algEqual : ((0 . 0) 0 . 1)\((0 0 . 0) 0 1 . 0)\(|Expression| (|Float|)) 1<enter compiledLookupCheck : =\((|Boolean|) $ !$)\#<vector 08eccc78> 1>exit compiledLookupCheck : (#<compiled-function |EXPR;=;2$B;21|> . #<vector 08eccc78>)
after SPADCALL (it's not traced) "=" in EXPR trigger the bug:
algEqual : ((0 . 0) 0 . 1)\((0 0 . 0) 0 1 . 0)\(|Expression| (|Float|)) ^^^^^^^^^^^^^^^
I think above is not of type EXPR FLOAT.
Other thing:
1.0::UnivariatePuiseuxSeries(Expression Float,x, 0.0)
(4) |
Memory damaged if it's added to .axiom.input