HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · CELO · AVALANCHE · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG
Agent402 / tools / Math & finance

Math & finance

Safe expression calculator, statistics, unit conversion across 13 categories (length, mass, temperature, …) via POST /api/unit-convert, percentage/number formatting, CIDR subnets, compound interest and loan math.

13 tools in this category - 13 free via proof-of-work. ← All tools

Calculator

FREE w/ compute · or $0.002 · POST /api/calc

Safely evaluate an arithmetic expression (+ - * / % ^ and parentheses). No code execution - a real parser, not eval.

Statistics

FREE w/ compute · or $0.001 · POST /api/stats

Descriptive statistics for an array of numbers: count, sum, mean, median, mode, min, max, range, variance, stddev, and p…

Unit convert

FREE w/ compute · or $0.001 · POST /api/unit-convert

Convert a value between units of length, mass, temperature, volume, area, speed, time, data, pressure, energy, power, an…

Percentage

FREE w/ compute · or $0.001 · POST /api/percentage

Percentage helper. op: "of" (a% of b), "change" (% change a→b), "ratio" (a is what % of b).

Number format

FREE w/ compute · or $0.001 · POST /api/number-format

Format a number: thousands separators, fixed decimals, optional currency, or compact (1.2K / 3.4M).

CIDR calculator

FREE w/ compute · or $0.002 · POST /api/cidr

Parse an IPv4 CIDR block: network address, broadcast, first/last host, netmask, and host count. Optionally test if an IP…

Finance

FREE w/ compute · or $0.005 · POST /api/finance

Financial math. op: "compound" (future value of principal at a rate) or "loan" (monthly payment + total for a loan).

Geo distance (haversine)

FREE w/ compute · or $0.001 · POST /api/geo-distance

Great-circle distance between two latitude/longitude points using the haversine formula. Returns kilometers and miles. D…

Prime factorize

FREE w/ compute · or $0.001 · POST /api/prime-factorize

Find the prime factorization of an integer via trial division. Returns the list of prime factors (with repeats), a human…

GCD & LCM

FREE w/ compute · or $0.001 · POST /api/gcd-lcm

Compute the greatest common divisor (Euclidean algorithm) and least common multiple of two positive integers. Also repor…

Combinatorics

FREE w/ compute · or $0.001 · POST /api/combinatorics

Compute combinations C(n, r) or permutations P(n, r) using BigInt for exact arbitrary-precision results. Returns the res…

Matrix multiply

FREE w/ compute · or $0.001 · POST /api/matrix-multiply

Standard matrix multiplication of two 2D arrays: A[m×k] × B[k×n] → C[m×n]. Validates that inner dimensions match. Each d…

Modular arithmetic

FREE w/ compute · or $0.001 · POST /api/mod-arithmetic

Modular arithmetic operations: mod (a mod m), modpow (a^b mod m via fast exponentiation), and modinverse (a^-1 mod m via…