Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladikoff/node-gap-system
Perform computations using the GAP computer algebra system
https://github.com/vladikoff/node-gap-system
Last synced: 14 days ago
JSON representation
Perform computations using the GAP computer algebra system
- Host: GitHub
- URL: https://github.com/vladikoff/node-gap-system
- Owner: vladikoff
- License: mit
- Created: 2013-12-15T23:43:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-08T05:41:53.000Z (almost 11 years ago)
- Last Synced: 2024-10-19T00:26:18.095Z (3 months ago)
- Language: JavaScript
- Size: 8.1 MB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gap-system
Perform computations using the [GAP](http://www.gap-system.org/) computer algebra system from node.js.
## Setup
* Currently only supports calculating expressions created in [OpenMath](http://www.openmath.org/) XML format.
* Requires [OpenMath](http://www.gap-system.org/Packages/openmath.html) in your GAP installation.
* Create a workspace in GAP using:```
gap> LoadPackage("openmath");
gap> SaveWorkspace("workspace");
true
```## Usage
Initialize:
```
var gap = require('gap-system')({
path: GAP_PATH,
workspace: 'workspace'
});
```Calculate:
```
var xml = " 3 4 ";gap.calculate(xml, function(err, resp) {
var result = resp;
});
```### Options
#### path
Type: `String` - [Optional]
Default: 'gap'Path to your GAP installation.
You can also use `GAP_PATH`.#### workspace
Type: `String` - [Required]Path to your GAP workspace.
## Development
Running tests:
```
npm test
```or custom path:
```
GAP_PATH=[path]/gap/gap npm test
```