Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346<Chapter Label="Intro">1<Heading>Introduction and installation</Heading>23<Section Label="IntroIntro">4<Heading>Brief description of the package</Heading>56The &GAP; package &OpenMath; provides an &OpenMath; phrasebook for &GAP;:7it allows &GAP; users to import and export mathematical objects encoded in8&OpenMath; for the purpose of exchanging them with other &OpenMath;-enabled9applications.10<P/>1112This manual describes:13<List>14<Item>how to view &OpenMath; representation of an object;</Item>15<Item>how to read &OpenMath; object from stream or write it to stream for the16purposes of exchange with another &OpenMath;-enabled application;</Item>17<Item>how to find which objects can be converted to/from &OpenMath; using this package;</Item>18<Item>how to extend the package to support private &OpenMath; content dictionaries.</Item>19</List>2021For the detailed information about &OpenMath; standard and content dictionaries22see the &OpenMath; homepage <URL>http://www.openmath.org</URL>.23<P/>2425For practical purposes, the &OpenMath; package will be most efficient if used in26conjunction with the &GAP; package &SCSCP; (<Cite Key="SCSCPpkg"/>) which implements27the Symbolic Computation Software Composability protocol (<Cite Key="SCSCPspec"/>).28This protocol specifies an &OpenMath;-based remote procedure call framework, in which29all messages (procedure calls and returns of results of successful computation30or error messages) are encoded in &OpenMath; using content dictionaries31&scscp1; and &scscp2; (<Cite Key="scscp1cd"/>, <Cite Key="scscp2cd"/>).32Using the &SCSCP; package, &GAP; can communicate locally or remotely with any33other &OpenMath;-enabled &SCSCP;-compliant application which may be not only34another computer algebra system but also another instance of the &GAP; system35or even, for example, an external C/C++ or Java application. Such communication36will go into a seamless manner with the &GAP;/&OpenMath; conversion going in the37background.38</Section>394041<Section Label="IntroInstall">42<Heading>Installation of the package</Heading>4344To use the &OpenMath; package it is required to install the &GAPDoc; package45<Cite Key="GAPDoc"/> to use the help system and parse &OpenMath; objects46in the XML format.47<P/>4849To install the &OpenMath; package, unpack the archive and place the <File>openmath</File>50directory in the <File>pkg</File> subdirectory of your &GAP;4.4 installation.51When you don't have write access to the directory of your main &GAP;52installation, you can also install the package53<E>outside the &GAP; main directory</E>54by unpacking it inside a directory <File>MYGAPDIR/pkg</File>.55Then to be able to load &OpenMath; you need to call GAP with the56<C>-l ";MYGAPDIR"</C> option.57<P/>58When the &OpenMath; package is installed, it may be loaded as shown below59(possibly loading required packages at the same time):60<Log>61<![CDATA[62gap> LoadPackage("openmath");63-----------------------------------------------------------------------------64Loading OpenMath 11.4.0 (OpenMath functionality in GAP)65by Marco Costantini,66Alexander Konovalov (http://blogs.cs.st-andrews.ac.uk/alexk/),67Max Nicosia, and68Andrew Solomon.69Homepage: https://gap-packages.github.io/openmath70-----------------------------------------------------------------------------71true72]]>73</Log>7475</Section>7677</Chapter>7879