axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] RE: plone/python/axiom


From: Bill Page
Subject: [Axiom-developer] RE: plone/python/axiom
Date: Fri, 4 Jun 2004 22:05:22 -0400

Tim,

On Friday, June 04, 2004 3:49 PM you wrote:
> 
> At http://page.axiom-developer.org/zope/Plone/wiki/June32004
> there are a bunch of Axiom expressions. It would be sweet if 
> there was some way to execute Axiom behind the scenes. Since 
> plone is python, nearly lisp, there ought to be a way to do 
> this. Suggestions?

Well, the simplest approach I can think of would be to patch
the existing LatexWiki code to treat input such as

  \begin{axiom-input}
  R1:=matrix([[cos a, sin a, 0],[-sin a, cos a, 0],[0, 0, 1]])
  \end{axiom-input}
  Next we define a rotation around the Y axis by a rotation angle of b 
  \begin{axiom-input}
  R2:=matrix([[cos b, 0, -sin b],[0, 1, 0],[sin b, 0, cos b]])
  \end{axiom-input}
  The we compose them (order is important) to form the single
  rotation equivalent to first rotating around X, then around
  the new, displaced Y. 
  \begin{axiom-input}
  R:=R1*R2
  \end{axiom-input}
  ...

in a special way. Anything between \begin{axiom-input} ...
\end{axiom-input}would be first passed via a pipe to Axiom
and the output would be passed to LaTeX instead of going direct
to LaTeX the way it does now. I think one must start an Axiom
session at the occurrence of the first \begin{axiom-input} on
the page and not close it until finished parsing the contents
of the page.

In principle adding code to do this to the wiki code should
not be that difficult since it already does a lot of these
things to generate the LaTeX math output anyway.

Regards,
Bill Page.

BTW, I made some editing changes to your June32004 page to
illustrate the use of the LaTeX math. For example you can
write $G0_n$ and $R^n$ and then it displays with a real
subscript and superscripts. $\alpha$ display the Greek
letter etc. If you need to you can also display LaTeX
equations this way. Let me know if this is ok or if you
have any questions about using LaTeX in the wiki.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]