I just noticed that compiling the package code at
http://axiom-wiki.newsynthesis.org/FunWithFunctions
--
)abbrev package MYEXP MyExp
MyExp(F: Algebra(Fraction(Integer))): with
myexp: F -> F
myexp: (F, NonNegativeInteger) -> F
== add
Map2 ==> ListFunctions2(NonNegativeInteger, F)
myexp(x, n) ==
a(i : NonNegativeInteger) : F == (1/(factorial i)) * x^i
reduce(_+@((F, F) -> F), map(a, [i for i in 0..n])$Map2)
myexp(x: F): F == myexp(x, 32)
--
Gives the following error message:
>> System error:
The bounding indices 163 and 162 are bad for a sequence of length 162.
See also:
The ANSI Standard, Glossary entry for "bounding index designator"
The ANSI Standard, writeup for Issue SUBSEQ-OUT-OF-BOUNDS:IS-AN-ERROR
--
but it seems to work ok anyway.
FriCAS was compiled from trunk source svn Rev: 1004
Version: FriCAS 2010-12-08
Timestamp: Thursday March 10, 2011
using
# sbcl --version
SBCL 1.0.31
# gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
on 64-bit Ubuntu 9.04
# uname -a
Linux billpage 2.6.28-19-server #64-Ubuntu SMP Wed Aug 18 22:43:50 UTC
2010 x86_64 GNU/Linux
Regards,
Bill Page.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.