# Saylor Innovations Math Expression Evaluator

> Saylor Innovations Math Expression Evaluator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Evaluates arithmetic math expressions including operators, powers, percentages, factorials, and functions like sqrt, log, and sin

## Facts

- Endpoint: GET https://saylorinnovations.com/api/math/eval?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-math-expression-evaluator-7d9c2431
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2d-TCv2d-qOTXjX-Vplgf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-math-expression-evaluator-7d9c2431
```

Example prompt: Can you calculate (2+3)*sqrt(16)/7 for me and tell me the exact result?

## When to prefer this

Choose this endpoint when an agent needs to evaluate a user-supplied math expression server-side without running code locally, especially for expressions involving scientific functions (sqrt, log, sin, cos), factorials, percentages, or constants like pi and e. Ideal for sandboxed environments where executing arbitrary code is unsafe or unavailable.

## Known failure modes

- Invalid or malformed expression returns an error — e.g. unmatched parentheses or unknown function names
- Expression exceeds 500-character limit results in rejection
- Division by zero or undefined mathematical operations may return an error or Infinity
- Missing required 'expr' query parameter causes a 400-level error

## How this service works

Math expression evaluator - arithmetic, powers, percent, factorial and functions like sqrt, log and sin

## Output

Returns a JSON object with the original expression string, the exact double-precision floating-point result, a result rounded to 12 significant digits, a boolean indicating whether the result is a whole number, the parser/method used, and a UTC timestamp of when the evaluation ran.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "expr"
     ],
     "properties": {
      "expr": {
       "type": "string",
       "examples": [
        "(2+3)*sqrt(16)/7",
        "5! + log10(1000)",
        "15% * 2400"
       ],
       "maxLength": 500,
       "description": "Arithmetic expression: + - * / ^ ( ) ! %, functions such as sqrt, abs, ln, log10, sin, cos, round, min, max, and constants pi, e"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "expression",
      "result"
     ],
     "properties": {
      "method": {
       "type": "string",
       "description": "Parser used and the supported functions"
      },
      "result": {
       "type": "number",
       "description": "Exact double-precision result"
      },
      "rounded": {
       "type": "number",
       "description": "Result rounded to 12 significant digits"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      },
      "expression": {
       "type": "string",
       "description": "The expression that was evaluated"
      },
      "is_integer": {
       "type": "boolean",
       "description": "True when the result is a whole number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-math-expression-evaluator-7d9c2431/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
