Exact calculator for agents
shop.lordevo.com/api/quick/math-eval
Exact calculator for agents: evaluates a math expression with big integers and exact fractions (1/3 stays 1/3), powers, factorials, sqrt, round, gcd, lcm, comb, perm, logs and trig. Returns result, fraction, decimal to N places, repeating decimal and whether it is exact. Offline.
GET
https://shop.lordevo.com/api/quick/math-evalUptime100% 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://shop.lordevo.com/api/quick/math-eval?expr=sqrt%2816%2F9%29+%2B+cbrt%28-27%29+%2B+8%5E%281%2F3%29");
console.log(await res.json());Example input
{
"expr": "sqrt(16/9) + cbrt(-27) + 8^(1/3)"
}