Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563571 views
1
2
1 Introduction and installation
3
4
5
1.1 Brief description of the package
6
7
The GAP package OpenMath provides an OpenMath phrasebook for GAP: it allows
8
GAP users to import and export mathematical objects encoded in OpenMath for
9
the purpose of exchanging them with other OpenMath-enabled applications.
10
11
This manual describes:
12
13
 how to view OpenMath representation of an object;
14
15
 how to read OpenMath object from stream or write it to stream for the
16
purposes of exchange with another OpenMath-enabled application;
17
18
 how to find which objects can be converted to/from OpenMath using this
19
package;
20
21
 how to extend the package to support private OpenMath content
22
dictionaries.
23
24
For the detailed information about OpenMath standard and content
25
dictionaries see the OpenMath homepage http://www.openmath.org.
26
27
For practical purposes, the OpenMath package will be most efficient if used
28
in conjunction with the GAP package SCSCP ([KL]) which implements the
29
Symbolic Computation Software Composability protocol ([FHKLR]). This
30
protocol specifies an OpenMath-based remote procedure call framework, in
31
which all messages (procedure calls and returns of results of successful
32
computation or error messages) are encoded in OpenMath using content
33
dictionaries scscp1 and scscp2 ([FHKLLRa], [FHKLLRb]). Using the SCSCP
34
package, GAP can communicate locally or remotely with any other
35
OpenMath-enabled SCSCP-compliant application which may be not only another
36
computer algebra system but also another instance of the GAP system or even,
37
for example, an external C/C++ or Java application. Such communication will
38
go into a seamless manner with the GAP/OpenMath conversion going in the
39
background.
40
41
42
1.2 Installation of the package
43
44
To use the OpenMath package it is required to install the GAPDoc package
45
[LN] to use the help system and parse OpenMath objects in the XML format.
46
47
To install the OpenMath package, unpack the archive and place the openmath
48
directory in the pkg subdirectory of your GAP4.4 installation. When you
49
don't have write access to the directory of your main GAP installation, you
50
can also install the package outside the GAP main directory by unpacking it
51
inside a directory MYGAPDIR/pkg. Then to be able to load OpenMath you need
52
to call GAP with the -l ";MYGAPDIR" option.
53
54
When the OpenMath package is installed, it may be loaded as shown below
55
(possibly loading required packages at the same time):
56
57
 Example 
58

59
gap> LoadPackage("openmath");
60
-----------------------------------------------------------------------------
61
Loading OpenMath 11.4.0 (OpenMath functionality in GAP)
62
by Marco Costantini,
63
 Alexander Konovalov (http://blogs.cs.st-andrews.ac.uk/alexk/),
64
 Max Nicosia, and
65
 Andrew Solomon.
66
Homepage: https://gap-packages.github.io/openmath
67
-----------------------------------------------------------------------------
68
true
69

70

71
72
73