version 1.7, 2000/01/16 06:39:39 |
version 1.9, 2000/01/17 00:48:06 |
|
|
% $OpenXM: OpenXM/doc/issac2000/openxm-clients.tex,v 1.6 2000/01/16 03:15:49 noro Exp $ |
% $OpenXM: OpenXM/doc/issac2000/openxm-clients.tex,v 1.8 2000/01/16 10:58:19 takayama Exp $ |
|
|
\section{OpenXM Clients} |
\section{OpenXM Clients} |
|
|
Line 61 The module {\tt math2ox} communicates with Mathematica |
|
Line 61 The module {\tt math2ox} communicates with Mathematica |
|
with any OpenXM server by the OpenXM protocol. |
with any OpenXM server by the OpenXM protocol. |
By using the module {\tt math2ox}, |
By using the module {\tt math2ox}, |
we can call OpenXM servers from Mathematica; |
we can call OpenXM servers from Mathematica; |
here is an example of a computation of the de Rham cohomology groups |
here is a demonstration of a computation of the de Rham cohomology groups |
of ${\bf C}^2 \setminus V(x^3-y^2)$ from Mathematica. |
of ${\bf C}^2 \setminus V(x^3-y^2)$ from Mathematica. |
{\footnotesize |
{\footnotesize |
\begin{verbatim} |
\begin{verbatim} |
Line 74 Out[4]= [ 1 , 1 , 0 ] (* The dimension of |
|
Line 74 Out[4]= [ 1 , 1 , 0 ] (* The dimension of |
|
\end{verbatim} |
\end{verbatim} |
} |
} |
|
|
\subsubsection{Functions} |
|
|
|
The {\tt math2ox} adds the following functions to Mathematica. |
The {\tt math2ox} adds the following functions to Mathematica. |
\begin{quote} |
\begin{quote} |
{\tt OxStart[s\_String]} \\ |
{\tt OxStart[s\_String]} \\ |
Line 95 as {\tt ox\_pop\_cmo()} in Risa/Asir; |
|
Line 93 as {\tt ox\_pop\_cmo()} in Risa/Asir; |
|
it pops data from the server stack. |
it pops data from the server stack. |
The {\tt OxGet[]} receives an OX data message |
The {\tt OxGet[]} receives an OX data message |
and returns its translation to an local object. |
and returns its translation to an local object. |
By using the {\tt OxParse[]} function, one can send OX messages, |
The function {\tt OxParse[]} helps debugging to connect Mathematica |
|
and ox servers. |
|
By using the function, one can send OX messages, |
written by the OX expression, to a server. |
written by the OX expression, to a server. |
OX expressions are Lisp-like expressions for OX messages and are defined |
OX expressions are Lisp-like expressions for OX messages and are defined |
in~\cite{noro-takayama}. |
in~\cite{noro-takayama}. |