Rational equation check

rational-equation-check · version 1.0.0 · Numbers & math · free, no key needed

Check a chained claim like 1/2 + 1/3 = 5/6 < 1 exactly; returns the first false relation or division by zero.

Use when you need to: verify a chain of fraction equalities · check an equation between fraction expressions · is this fraction identity true.

Decide before calling

Read the versioned contract and the supported scope below. Reuse rational-equation-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use rational-equation-check@1.0.0 for verify a chain of fraction equalities. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "equation": "2/5 = 1/3 + 1/15"
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "relations_checked": 1,
    "segment_values": [
      "2/5",
      "2/5"
    ],
    "first_discrepancy": null,
    "reference_version": "ISO/IEC 10967-2:2001 (LIA-2) exact-result terminology; exact arithmetic over the rationals with canonical reduced form; RFC 8259 sec. 6 integer grammar and sec. 7 strings"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "rational-equation-check",
  "version": "1.0.0",
  "input": {
    "equation": "2/5 = 1/3 + 1/15"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/rational-equation-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"equation":"2/5 = 1/3 + 1/15"}'

The machine-readable contract is at /v1/tools/rational-equation-check/versions/1.0.0.

CLI

node cli.mjs run rational-equation-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.