datenvertrag.halowerk.com/v1/rational-polygon-ehrhart-quasipolynomial-family
For a fully supplied rational convex planar polygon compute its ENTIRE Ehrhart lattice-point quasipolynomial: all residue constituent degree-two polynomials, exact denominator period and least quasipolynomial period including period collapse. This counts ALL integer dilations by theorem, not just lattice points for one dilation, an Ehrhart finite prefix, cone Hilbert basis, a Hilbert series for a
POST
https://datenvertrag.halowerk.com/v1/rational-polygon-ehrhart-quasipolynomial-familyUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/rational-polygon-ehrhart-quasipolynomial-family", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claim":{"constituents":[["1/1","3/4","1/8"],["3/8","1/2","1/8"]],"denominator":2,"least_period":2},"vertices_twice":[[0,0],[1,0],[0,1]]}),
});
console.log(await res.json());Example input
{
"claim": {
"constituents": [
[
"1/1",
"3/4",
"1/8"
],
[
"3/8",
"1/2",
"1/8"
]
],
"denominator": 2,
"least_period": 2
},
"vertices_twice": [
[
0,
0
],
[
1,
0
],
[
0,
1
]
]
}