added:
From greg Sat Mar 15 05:14:12 -0700 2008
From: greg
Date: 2008年3月15日 05:14:12 -0700
Subject:
Message-ID: <20080315051412-0700@axiom-wiki.newsynthesis.org>
\begin{aldor}
#include "axiom"
fact(n: PositiveInteger): PositiveInteger == {
n <= 1 => 1;
res: PositiveInteger := 1;
while n > 1 repeat {
res := res * n;
n := n-1;
}
res
}
\end{aldor}
\begin{axiom}
fact 4
\end{axiom}
This is the front page of the SandBox? . You can try anything you like here but keep in mind that other people are also using these pages to learn and experiment with Axiom and Reduce. Please be curteous to others if you correct mistakes and try to explain what you are doing.
Normally, if you edit any page on MathAction? and click
Save or if you add a comment to a page, a notice of the
change is sent out to all subscribers on the axiom-developer
email list, see the [Axiom Community]?. Separate notices are
also sent to those users who subscribe directly to
MathAction?.
If you click Preview instead of Save, you will get a chance
to see the result of your calculations and LaTeX? commands but
no email notice is sent out and the result is not saved until
you decide to click Save or not.
On this page or on any other page with a name beginning with
SandBox? such as SandBoxJohn2?, SandBoxSimple?, SandBoxEtc?, clicking
Save only sends email notices to users who subscribe
directly to that specific SandBox? page. Saving and adding
comments does not create an email to the email list. You
can safely use these pages for testing without disturbing
anyone who might not care to know about your experiments.
You can also create new SandBox? pages as needed just by editing this page and adding a link to the list of new page below. The link must include at least two uppercase letters and no spaces or alternatively it can be any phrase written inside [ ] brackets as long as it begins with SandBox?. When you Save this page, the link to the new page will appear with a blue question mark ? beside it. Clicking on the blue question mark ? will ask you if you wish to create a new page.
generator for type Vectorpretend vs. strong typingSandBoxCS224?
[SandBox kaveh]?
[MathMLFormat]?
extend
to add a category to a previously defined domain.1::EXPR INT or 1::FRAC INT[SandBox Zero]?
[SandBox Axiom Strengths]?
[[SandBox12TestIndetAndComplex]]?
[SandBoxKMG]?
[SandBoxDGE]?
Click on the ? to create a new page. You should also edit this page to include a description and a new empty link for the next person.
Here is a simple Axiom command:
\begin{axiom}
integrate(1/(a+z^3), z=0..1,"noPole")
\end{axiom}
axiomintegrate(1/(a+z^3), z=0..1,"noPole")
And here is a REDUCE command:
\begin{reduce}
load_package sfgamma;
load_package defint;
int(1/(a+z^3), z,0,1);
\end{reduce}
load_package sfgamma; load_package defint; *** gamma declared operator *** ci already defined as operator *** si already defined as operator int(1/(a+z^3), z,0,1);reduce
Please review the list of [Common Mistakes]? and the list of [MathAction Problems]? if you are have never used MathAction? before. If you are learning to use Axiom and think that someone must have solved some particular problem before you, check this list of Common [Axiom Problems]?.
... --greg, 2008年3月15日 05:12:56 -0700 replyaldor#include "axiom" fact(n: PositiveInteger): PositiveInteger == { n <= 1 => 1; res: PositiveInteger := 1; while n > 1 repeat { res := res * n; n := n-1; } res }aldorCompiling FriCAS source code from file /var/zope2/var/LatexWiki/5597251742083727311-25px001.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra Use the system command )set compiler args to change these options. #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' Compiling Lisp source code from file ./5597251742083727311-25px001.lsp Issuing )library command for 5597251742083727311-25px001 Reading /var/zope2/var/LatexWiki/5597251742083727311-25px001.asy\begin{fricas} fact 4 \end{fricas}
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) \write18 enabled. entering extended mode (./5720973349192907468-18.0px.tex LaTeX2e <2003年12月01日> Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf-tetex/tex/latex/base/article.cls Document Class: article 2004年02月16日 v1.4f Standard LaTeX document class (/usr/share/texmf-tetex/tex/latex/base/size12.clo)) (/usr/share/texmf-tetex/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texmf-tetex/tex/latex/amsmath/amstext.sty (/usr/share/texmf-tetex/tex/latex/amsmath/amsgen.sty)) (/usr/share/texmf-tetex/tex/latex/amsmath/amsbsy.sty) (/usr/share/texmf-tetex/tex/latex/amsmath/amsopn.sty)) (/usr/share/texmf-tetex/tex/latex/amsfonts/amsfonts.sty) (/usr/share/texmf-tetex/tex/latex/amsfonts/amssymb.sty) (/usr/share/texmf-tetex/tex/latex/amscls/amsthm.sty) (/usr/share/texmf-tetex/tex/generic/xypic/xy.sty (/usr/share/texmf-tetex/tex/generic/xypic/xy.tex Bootstrap'ing: catcodes, docmode, (/usr/share/texmf-tetex/tex/generic/xypic/xyrecat.tex) (/usr/share/texmf-tetex/tex/generic/xypic/xyidioms.tex)Xy-pic version 3.7 <1999年02月16日> Copyright (c) 1991-1998 by Kristoffer H. Rose <krisrose@ens-lyon.fr> Xy-pic is free software: see the User's Guide for details.
Loading kernel: messages; fonts; allocations: state, direction, utility macros; pictures: \xy, positions, objects, decorations; kernel objects: directionals, circles, text; options; algorithms: directions, edges, connections; Xy-pic loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xyall.tex Xy-pic option: All features v.3.3 (/usr/share/texmf-tetex/tex/generic/xypic/xycurve.tex Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xyframe.tex Xy-pic option: Frame and Bracket extension v.3.7 loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xycmtip.tex Xy-pic option: Computer Modern tip extension v.3.3 (/usr/share/texmf-tetex/tex/generic/xypic/xytips.tex Xy-pic option: More Tips extension v.3.3 loaded) loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xyline.tex Xy-pic option: Line styles extension v.3.6 loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xyrotate.tex Xy-pic option: Rotate and Scale extension v.3.3 loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xycolor.tex Xy-pic option: Colour extension v.3.3 loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xymatrix.tex Xy-pic option: Matrix feature v.3.4 loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xyarrow.tex Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded) (/usr/share/texmf-tetex/tex/generic/xypic/xygraph.tex Xy-pic option: Graph feature v.3.7 loaded) loaded)) (/usr/share/texmf-tetex/tex/latex/graphics/graphicx.sty (/usr/share/texmf-tetex/tex/latex/graphics/keyval.sty) (/usr/share/texmf-tetex/tex/latex/graphics/graphics.sty (/usr/share/texmf-tetex/tex/latex/graphics/trig.sty) (/usr/share/texmf-tetex/tex/latex/graphics/graphics.cfg) (/usr/share/texmf-tetex/tex/latex/graphics/dvips.def))) (/usr/share/texmf-tetex/tex/latex/tools/verbatim.sty) (/usr/share/texmf-tetex/tex/latex/graphviz/graphviz.sty (/usr/share/texmf-tetex/tex/latex/psfrag/psfrag.sty)) (/usr/share/texmf-tetex/tex/latex/sage/sagetex.sty Writing sage input file 5720973349192907468-18.0px.sage (./5720973349192907468-18.0px.sout)) (./5720973349192907468-18.0px.aux)
LaTeX Error: Environment fricas undefined.
See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.60 \begin{fricas}
LaTeX Error: \begin{document} ended by \end{fricas}.
See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.62 \end{fricas}
[1] (./5720973349192907468-18.0px.aux) ) (see the transcript file for additional information) Output written on 5720973349192907468-18.0px.dvi (1 page, 228 bytes). Transcript written on 5720973349192907468-18.0px.log.
aldor#include "axiom" fact(n: PositiveInteger): PositiveInteger == { n <= 1 => 1; res: PositiveInteger := 1; while n > 1 repeat { res := res * n; n := n-1; } res }
Compiling FriCAS source code from file /var/zope2/var/LatexWiki/5597251742083727311-25px001.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra Use the system command )set compiler args to change these options. #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' Compiling Lisp source code from file ./5597251742083727311-25px001.lsp Issuing )library command for 5597251742083727311-25px001 Reading /var/zope2/var/LatexWiki/5597251742083727311-25px001.asy
axiomfact 4