Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

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

28485 views
License: GPL3
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