| version 1.4, 2000/01/13 09:21:34 |
version 1.5, 2000/01/15 06:26:06 |
|
|
| % $OpenXM: OpenXM/doc/issac2000/openxm-clients.tex,v 1.3 2000/01/11 05:17:11 noro Exp $ |
% $OpenXM: OpenXM/doc/issac2000/openxm-clients.tex,v 1.4 2000/01/13 09:21:34 ohara Exp $ |
| |
|
| \section{OpenXM Clients} |
\section{OpenXM Clients} |
| (noryo and Ohara) |
|
| MEMO: keywords: |
|
| Asir and Mathematica clients. |
|
| |
|
| \subsection{Risa/Asir} |
\subsection{Risa/Asir} |
| |
|
| Line 60 to avoid blocking on read operations. |
|
| Line 57 to avoid blocking on read operations. |
|
| |
|
| We provide an OpenXM client {\tt math2ox} written as an external module |
We provide an OpenXM client {\tt math2ox} written as an external module |
| for Mathematica. Our client communicates to Mathematica by MathLink and |
for Mathematica. Our client communicates to Mathematica by MathLink and |
| to an OpenXM server by OpenXM protocols. The {\tt math2ox} needs |
to an OpenXM server by OpenXM protocols. |
| {\tt ox} command attached to kan/sm1 to connect an OpenXM server. |
By using the module {\tt math2ox}, |
| |
we can call OpenXM servers from Mathematica; |
| |
here is an example of a computation of the de Rham cohomology groups |
| |
of ${\bf C}^2 \setminus V(x^3-y^2)$. |
| |
{\footnotesize |
| |
\begin{verbatim} |
| |
In[1]:= Install["math2ox"] |
| |
In[2]:= OxStart["../lib/sm1/bin/ox_sm1_forAsir"] |
| |
In[3]:= OxExecute[" [(x^3-y^2) (x,y)] deRham "] |
| |
In[4]:= OxPopString[] |
| |
Out[4]= [ 1 , 1 , 0 ] |
| |
\end{verbatim} |
| |
} |
| |
|
| \subsubsection{Functions} |
\subsubsection{Functions} |
| |
|
| The {\tt math2ox} has the following functions functions named |
The {\tt math2ox} has the following functions |
| like Risa/Asir; |
which respectively correspond those in Risa/Asir. |
| \begin{quote} |
\begin{quote} |
| {\tt OxStart[s\_String]} \\ |
{\tt OxStart[s\_String]} \\ |
| {\tt OxStartInsecure[s\_String]} \\ |
{\tt OxStartInsecure[s\_String]} \\ |
| Line 82 For example, the {\tt OxPopCMO[]} function above reque |
|
| Line 91 For example, the {\tt OxPopCMO[]} function above reque |
|
| send data on the stack to the stream, then it receives the data from the |
send data on the stack to the stream, then it receives the data from the |
| stream. |
stream. |
| |
|
| The {\tt OxParse[]} and the {\tt OxGet[]} above are low level functions. |
|
| By using the {\tt OxParse[]} function, we can send suitable OX messages, |
By using the {\tt OxParse[]} function, we can send suitable OX messages, |
| which are written as an OX expression, to a server. OX expressions are |
written by the OX expression, to a server. OX expressions are |
| Lisp-like expressions for OX messages and are defined |
Lisp-like expressions for OX messages and are defined |
| in~\cite{noro-takayama}. The {\tt OxGet[]} receives an OX data message |
in~\cite{noro-takayama}. |
| and returns its object. |
The {\tt OxGet[]} receives an OX data message |
| |
and returns its translation to an local object. |
| |
|