/usr/lib/open-axiom/input/ode.input is in open-axiom-test 1.5.0~svn3056+ds-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | --Copyright The Numerical Algorithms Group Limited 1996.
--A bug when one one uses a diff.eq. with a free variable other than x.
)set break resume
y:=operator 'y
deqx:= differentiate(y x,x,2)+differentiate(y x,x) +y x
solve(deqx,y,x) --OK
solve(deqx,y,x=0,[1]) --OK
deqt:= differentiate(y t,t,2)+differentiate(y t,t) +y t
solve(deqt,y,t) --OK
solve(deqt,y,t=0,[1]) -- BUG!
deqz:= differentiate(y z,z,2)+differentiate(y z,z) +y z
solve(deqz,y,z) --OK
solve(deqz,y,z=0,[1]) -- BUG!
--I think the bug is in
-- file odeef.spad
-- constructor ODEEF
-- function solve(diffeq:F,y:OP,center:EQ,y0:List F)
--the second line of the body was
-- kx:K:=kernel x
--which uses uninitialised x. I think it should be
-- kx:K:=kernel(retract(lhs(center))@SY)
--as the line immediately below it. That change certainly fixes THIS bug!
--Also, maybe a check should be made that this kx is indeed to be found
--in the diffeq -- my system reports segmenttion violation if I do
solve(deqt,y,x=0,[1])
|