hesaplayıcı
Menu

Proportion Calculator: API and MCP

Proportion Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/math.ratio/mcp/math

Id
math.ratio
Version
1.0.0
Access
Free
Tool page
Proportion Calculator
Schema
GET /api/v1/tools/math.ratio

Input

FieldTypeConstraintsDefaultDescription
a (required)number≥ -1,000,000,000,000, ≤ 1,000,000,000,000a (first value)
b (required)number≥ -1,000,000,000,000, ≤ 1,000,000,000,000b (value that goes with a)
c (required)number≥ -1,000,000,000,000, ≤ 1,000,000,000,000c (new value)
kindstringdirect | inversedirectType of proportion

Output

FieldTypeDescription
xnumberx (the unknown)
constantnumberConstant of proportionality (k)

Example request

{
  "input": {
    "a": 3,
    "b": 12,
    "c": 5,
    "kind": "direct"
  },
  "locale": "en"
}
Example answer
{
  "output": {
    "x": 20,
    "constant": 4
  },
  "steps": [
    {
      "id": "constant",
      "formula": "k = b / a",
      "substitution": "k = 12 / 3",
      "value": 4
    },
    {
      "id": "x",
      "formula": "x = b × c / a",
      "substitution": "x = 12 × 5 / 3",
      "value": 20
    }
  ],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/proportion-calculator",
    "title": "Proportion Calculator"
  }
}