Waldek, Sorry, I am at a loss to understand what is happening here. When I try this example interactively in a session on the same computer where axiom-wiki is running I am also not able to reproduce this error message. I have done my best to reproduce exactly the same environment in which axiom-wiki runs but the error only occurs when I run this example from the web page and not when I run it interactively. The only clue I have is that when I run it interactively I see the following warning messages from sbcl:
; compiling file "/var/lib/zope/MYEXP.NRLIB/MYEXP.lsp" (written 05 APR 2011 08:30:00 AM): ; file: /var/lib/zope/MYEXP.NRLIB/MYEXP.lsp ; in: DEFUN |MyExp;| ; (BOOT::|haddProp| BOOT::|$ConstructorCache| 'BOOT::|MyExp| (LIST BOOT::DV$1) ; (CONS 1 BOOT::$)) ; ; caught WARNING: ; undefined variable: |$ConstructorCache| ; in: DEFUN |MyExp| ; (VMLISP:HGET BOOT::|$ConstructorCache| 'BOOT::|MyExp|) ; --> GETHASH ; ==> ; (SB-IMPL::GETHASH3 'BOOT::|MyExp| BOOT::|$ConstructorCache| NIL) ; ; caught WARNING: ; undefined variable: |$ConstructorCache| ; ; compilation unit finished ; Undefined variable: ; |$ConstructorCache| ; caught 2 WARNING conditions ; /var/lib/zope/MYEXP.NRLIB/MYEXP.fasl written ; compilation finished in 0:00:00.169 -- I do not see this warning at all when running exactly the same code in what I believe to be exactly the same environment (AXIOM variable and method of calling friCAS). ; compiling file "/var/zope2/var/LatexWiki/MYEXP.NRLIB/MYEXP.lsp" (written 05 APR 2011 09:00:27 AM): ; /var/zope2/var/LatexWiki/MYEXP.NRLIB/MYEXP.fasl written ; compilation finished in 0:00:00.165 -- In axiom-wiki I cannot use interactive commands like: ')set break break' and 'backtrace' because the compilation is triggered only when saving the edited web page. Is there some other way to obtain the backtrace that would work from a batch .input file? Regards, Bill Page. On Tue, Apr 5, 2011 at 10:31 AM, Waldek Hebisch <[email protected]> wrote: > Bill Page wrote: >> >> 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 >> > > Using sbcl 1.0.23 on Fedora and 1.0.40.0.debian on Debian I can not > reproduce this. Could you try ')set break break' before compilation > and then report what 'backtrace' says when you get error. > > -- > Waldek Hebisch > [email protected] > > -- > 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. > > -- 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.
