Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Testing latest pari + WASM + node.js... and it works?! Wow.

Path: pari / test / pari.js
Views: 1546
License: GPL3
Image: ubuntu2004
1
gp = require("./gp-sta");
2
exports.init = () => {
3
gp.ccall(
4
"gp_embedded_init",
5
null,
6
["number", "number"],
7
[100000000, 100000000]
8
);
9
};
10
exports.pari = (s) => {
11
return gp.ccall("gp_embedded", "string", ["string"], [s]);
12
};
13
14