CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

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

Views: 418346
1
<Chapter Label="Intro">
2
<Heading>Introduction and installation</Heading>
3
4
<Section Label="IntroIntro">
5
<Heading>Brief description of the package</Heading>
6
7
The &GAP; package &OpenMath; provides an &OpenMath; phrasebook for &GAP;:
8
it allows &GAP; users to import and export mathematical objects encoded in
9
&OpenMath; for the purpose of exchanging them with other &OpenMath;-enabled
10
applications.
11
<P/>
12
13
This manual describes:
14
<List>
15
<Item>how to view &OpenMath; representation of an object;</Item>
16
<Item>how to read &OpenMath; object from stream or write it to stream for the
17
purposes of exchange with another &OpenMath;-enabled application;</Item>
18
<Item>how to find which objects can be converted to/from &OpenMath; using this package;</Item>
19
<Item>how to extend the package to support private &OpenMath; content dictionaries.</Item>
20
</List>
21
22
For the detailed information about &OpenMath; standard and content dictionaries
23
see the &OpenMath; homepage <URL>http://www.openmath.org</URL>.
24
<P/>
25
26
For practical purposes, the &OpenMath; package will be most efficient if used in
27
conjunction with the &GAP; package &SCSCP; (<Cite Key="SCSCPpkg"/>) which implements
28
the Symbolic Computation Software Composability protocol (<Cite Key="SCSCPspec"/>).
29
This protocol specifies an &OpenMath;-based remote procedure call framework, in which
30
all messages (procedure calls and returns of results of successful computation
31
or error messages) are encoded in &OpenMath; using content dictionaries
32
&scscp1; and &scscp2; (<Cite Key="scscp1cd"/>, <Cite Key="scscp2cd"/>).
33
Using the &SCSCP; package, &GAP; can communicate locally or remotely with any
34
other &OpenMath;-enabled &SCSCP;-compliant application which may be not only
35
another computer algebra system but also another instance of the &GAP; system
36
or even, for example, an external C/C++ or Java application. Such communication
37
will go into a seamless manner with the &GAP;/&OpenMath; conversion going in the
38
background.
39
</Section>
40
41
42
<Section Label="IntroInstall">
43
<Heading>Installation of the package</Heading>
44
45
To use the &OpenMath; package it is required to install the &GAPDoc; package
46
<Cite Key="GAPDoc"/> to use the help system and parse &OpenMath; objects
47
in the XML format.
48
<P/>
49
50
To install the &OpenMath; package, unpack the archive and place the <File>openmath</File>
51
directory in the <File>pkg</File> subdirectory of your &GAP;4.4 installation.
52
When you don't have write access to the directory of your main &GAP;
53
installation, you can also install the package
54
<E>outside the &GAP; main directory</E>
55
by unpacking it inside a directory <File>MYGAPDIR/pkg</File>.
56
Then to be able to load &OpenMath; you need to call GAP with the
57
<C>-l ";MYGAPDIR"</C> option.
58
<P/>
59
When the &OpenMath; package is installed, it may be loaded as shown below
60
(possibly loading required packages at the same time):
61
<Log>
62
<![CDATA[
63
gap> LoadPackage("openmath");
64
-----------------------------------------------------------------------------
65
Loading OpenMath 11.4.0 (OpenMath functionality in GAP)
66
by Marco Costantini,
67
Alexander Konovalov (http://blogs.cs.st-andrews.ac.uk/alexk/),
68
Max Nicosia, and
69
Andrew Solomon.
70
Homepage: https://gap-packages.github.io/openmath
71
-----------------------------------------------------------------------------
72
true
73
]]>
74
</Log>
75
76
</Section>
77
78
</Chapter>
79