hesaplayıcı
Menu

Math Tools: API and MCP

Math category REST API and MCP reference for 10 tools: input fields, limits, outputs, example requests and real answers. Free, no key.

GET /api/v1/tools?category=math/mcp/math/api/v1/openapi.json

Area, Perimeter and Volume Calculator

Id
math.geometry
Version
1.0.0
Access
Free
Tool page
Area, Perimeter and Volume Calculator
Schema
GET /api/v1/tools/math.geometry

Input

FieldTypeConstraintsDefaultDescription
modestringsquare | rectangle | triangle | circle | trapezoid | parallelogram | ellipse | cube | box | cylinder | cone | sphere | rightTrianglesquareShape
unitstringm | cm | mm | km | in | ft | ydmLength unit
lengthnumber≥ 0.000000001, ≤ 1,000,000,000Length / side (a)
widthnumber≥ 0.000000001, ≤ 1,000,000,000Width (b)
heightnumber≥ 0.000000001, ≤ 1,000,000,000Perpendicular height (h) · Enter the distance perpendicular to the base, not a sloping edge.
radiusnumber≥ 0.000000001, ≤ 1,000,000,000Radius (r) · Half the diameter.
sideAnumber≥ 0.000000001, ≤ 1,000,000,000First side (a)
sideBnumber≥ 0.000000001, ≤ 1,000,000,000Second side (b)
sideCnumber≥ 0.000000001, ≤ 1,000,000,000Third side (c)
basenumber≥ 0.000000001, ≤ 1,000,000,000Lower base (b)
topBasenumber≥ 0.000000001, ≤ 1,000,000,000Upper base (t)
sidenumber≥ 0.000000001, ≤ 1,000,000,000Sloping side (s)
offsetnumber≥ -1,000,000,000, ≤ 1,000,000,0000Upper-base horizontal offset (d) · From lower-left to upper-left vertex: positive right, negative left. 0 aligns the left ends. Enter (lower base − upper base) / 2 to center it.
semiAxisAnumber≥ 0.000000001, ≤ 1,000,000,000First semi-axis (a)
semiAxisBnumber≥ 0.000000001, ≤ 1,000,000,000Second semi-axis (b)
legAnumber≥ 0.000000001, ≤ 1,000,000,000First perpendicular leg (a)
legBnumber≥ 0.000000001, ≤ 1,000,000,000Second perpendicular leg (b)

Output

FieldTypeDescription
areanumberArea
volumenumberVolume
perimeternumberPerimeter
surfaceAreanumberTotal surface area
hypotenusenumberHypotenuse
leftSidenumberLeft sloping side
rightSidenumberRight sloping side
slantHeightnumberSlant height
approximatePerimeterbooleanEllipse perimeter uses Ramanujan’s second approximation; it is not exact.

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.geometry/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"mode":"square","unit":"m","length":12,"offset":0},"locale":"en"}'
Example answer
{
  "output": {
    "area": 144,
    "perimeter": 48
  },
  "steps": [
    {
      "id": "area",
      "formula": "A = a²",
      "substitution": "12²",
      "value": 144,
      "unit": "m²"
    },
    {
      "id": "perimeter",
      "formula": "P = 4a",
      "substitution": "4 × 12",
      "value": 48,
      "unit": "m"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/area-calculator",
    "title": "Area, Perimeter and Volume Calculator"
  }
}

Combinations and Permutations Calculator

Id
math.combinations
Version
1.0.0
Access
Free
Tool page
Combinations and Permutations Calculator
Schema
GET /api/v1/tools/math.combinations

Input

FieldTypeConstraintsDefaultDescription
modestringcombination | permutation | combinationRepetition | permutationRepetitioncombinationType of count
n (required)integer≥ 1, ≤ 1,000Number of items (n) · How many different items there are to choose from, 1 to 1,000.
r (required)integer≥ 0, ≤ 1,000Number chosen (r) · How many items are chosen or arranged, 0 to 1,000.

Output

FieldTypeDescription
resultstringNumber of ways
digitsnumberNumber of digits

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.combinations/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"mode":"combination","n":10,"r":3},"locale":"en"}'
Example answer
{
  "output": {
    "result": "120",
    "digits": 3
  },
  "steps": [
    {
      "id": "factorial.10",
      "formula": "n! = 1 × 2 × … × n",
      "substitution": "10! = 1 × 2 × … × 10",
      "value": 3628800
    },
    {
      "id": "factorial.3",
      "formula": "r! = 1 × 2 × … × r",
      "substitution": "3! = 1 × 2 × 3",
      "value": 6
    },
    {
      "id": "factorial.7",
      "formula": "(n − r)! = 1 × 2 × … × (n − r)",
      "substitution": "7! = 1 × 2 × … × 7",
      "value": 5040
    },
    {
      "id": "result",
      "formula": "C(n, r) = n! / (r! × (n − r)!)",
      "substitution": "C(10, 3) = 3,628,800 / (6 × 5,040)",
      "value": 120
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/combinations-calculator",
    "title": "Combinations and Permutations Calculator"
  }
}

Fraction Simplifier

Id
math.fraction
Version
1.0.0
Access
Free
Tool page
Fraction Simplifier
Schema
GET /api/v1/tools/math.fraction

Input

FieldTypeConstraintsDefaultDescription
numerator (required)integer≥ -1,000,000,000,000, ≤ 1,000,000,000,000Numerator
denominator (required)integer≥ -1,000,000,000,000, ≤ 1,000,000,000,000Denominator

Output

FieldTypeDescription
simplifiedNumeratornumberSimplified numerator
simplifiedDenominatornumberSimplified denominator
gcdnumberGCD (greatest common divisor)
decimalnumberDecimal value
wholePartnumberWhole part
remaindernumberRemainder (numerator of the mixed number)
signMovedbooleanThe denominator was negative; the minus sign was moved to the numerator.

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.fraction/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"numerator":84,"denominator":126},"locale":"en"}'
Example answer
{
  "output": {
    "simplifiedNumerator": 2,
    "simplifiedDenominator": 3,
    "gcd": 42,
    "decimal": 0.6666666666666666,
    "wholePart": 0,
    "remainder": 2,
    "signMoved": false
  },
  "steps": [
    {
      "id": "gcd",
      "formula": "GCD = gcd(|numerator|, denominator)",
      "substitution": "GCD = gcd(84, 126)",
      "value": 42
    },
    {
      "id": "simplifiedNumerator",
      "formula": "simplified numerator = numerator / GCD",
      "substitution": "simplified numerator = 84 / 42",
      "value": 2
    },
    {
      "id": "simplifiedDenominator",
      "formula": "simplified denominator = denominator / GCD",
      "substitution": "simplified denominator = 126 / 42",
      "value": 3
    },
    {
      "id": "decimal",
      "formula": "decimal = numerator / denominator",
      "substitution": "decimal = 84 / 126",
      "value": 0.6666666666666666
    },
    {
      "id": "wholePart",
      "formula": "whole part = (simplified numerator − remainder) / simplified denominator",
      "substitution": "whole part = (2 − 2) / 3",
      "value": 0
    },
    {
      "id": "remainder",
      "formula": "remainder = simplified numerator − whole part × simplified denominator",
      "substitution": "remainder = 2 − 0 × 3",
      "value": 2
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/simplify-fractions-calculator",
    "title": "Fraction Simplifier"
  }
}

GCD and LCM Calculator

Id
math.gcd-lcm
Version
1.0.0
Access
Free
Tool page
GCD and LCM Calculator
Schema
GET /api/v1/tools/math.gcd-lcm

Input

FieldTypeConstraintsDefaultDescription
numbers (required)arrayNumbers

Output

FieldTypeDescription
gcdnumberGCD (greatest common divisor)
lcmnumberLCM (least common multiple)
countnumberCount of numbers

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.gcd-lcm/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"numbers":[24,30]},"locale":"en"}'
Example answer
{
  "output": {
    "gcd": 6,
    "lcm": 120,
    "count": 2
  },
  "steps": [
    {
      "id": "factors.1",
      "formula": "n₁ = product of its prime factors",
      "substitution": "24 = 2³ × 3",
      "value": 24
    },
    {
      "id": "factors.2",
      "formula": "n₂ = product of its prime factors",
      "substitution": "30 = 2 × 3 × 5",
      "value": 30
    },
    {
      "id": "gcd",
      "formula": "GCD = product of the common prime factors, each with its lowest power",
      "substitution": "GCD = 2 × 3",
      "value": 6
    },
    {
      "id": "lcm",
      "formula": "LCM = product of all prime factors, each with its highest power",
      "substitution": "LCM = 2³ × 3 × 5",
      "value": 120
    },
    {
      "id": "euclid.1",
      "formula": "GCD(x, y) = GCD(y, x mod y)",
      "substitution": "GCD(24, 30): 30 = 1 × 24 + 6; 24 = 4 × 6 + 0",
      "value": 6
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/gcd-lcm-calculator",
    "title": "GCD and LCM Calculator"
  }
}

Percentage Calculator

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

Input

FieldTypeConstraintsDefaultDescription
modestringpercentOf | whatPercent | discount | increasepercentOfWhat to calculate
partnumber≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Part (A)
amount (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Number (B)
percentnumber≥ -10,000, ≤ 10,000Percentage (%)

Output

FieldTypeDescription
resultnumberResult
savingnumberSaving
increasednumberAfter increase
decreasednumberAfter discount

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.percentage/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"mode":"percentOf","amount":1000,"percent":20},"locale":"en"}'
Example answer
{
  "output": {
    "result": 200,
    "increased": 1200,
    "decreased": 800
  },
  "steps": [
    {
      "id": "result",
      "formula": "part = amount × percent / 100",
      "substitution": "part = 1,000 × 20 / 100",
      "value": 200
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/percentage-calculator",
    "title": "Percentage Calculator"
  }
}

Percentage Change Calculator

Id
math.percentage-change
Version
1.0.0
Access
Free
Tool page
Percentage Change Calculator
Schema
GET /api/v1/tools/math.percentage-change

Input

FieldTypeConstraintsDefaultDescription
oldValue (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000Old value
newValue (required)number≥ -1,000,000,000,000,000, ≤ 1,000,000,000,000,000New value

Output

FieldTypeDescription
changenumberPercentage change (%)
differencenumberDifference (new − old)
rationumberRatio new / old

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.percentage-change/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"oldValue":250,"newValue":300},"locale":"en"}'
Example answer
{
  "output": {
    "change": 20,
    "difference": 50,
    "ratio": 1.2
  },
  "steps": [
    {
      "id": "difference",
      "formula": "difference = new − old",
      "substitution": "difference = 300 − 250",
      "value": 50
    },
    {
      "id": "change",
      "formula": "percentage change = difference / |old| × 100",
      "substitution": "percentage change = 50 / 250 × 100",
      "value": 20,
      "unit": "%"
    },
    {
      "id": "ratio",
      "formula": "ratio = new / old",
      "substitution": "ratio = 300 / 250",
      "value": 1.2
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/percentage-change-calculator",
    "title": "Percentage Change Calculator"
  }
}

Proportion Calculator

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

curl -X POST https://hesaplayici.com/api/v1/tools/math.ratio/execute \
  -H 'Content-Type: application/json' \
  -d '{"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
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/proportion-calculator",
    "title": "Proportion Calculator"
  }
}

Ratio Simplifier

Id
math.simplify-ratio
Version
1.0.0
Access
Free
Tool page
Ratio Simplifier
Schema
GET /api/v1/tools/math.simplify-ratio

Input

FieldTypeConstraintsDefaultDescription
a (required)number> 0, ≤ 1,000,000,000a (first term)
b (required)number> 0, ≤ 1,000,000,000b (second term)

Output

FieldTypeDescription
simplifiedAnumberFirst term, simplified
simplifiedBnumberSecond term, simplified
gcdnumberGCD
scalenumberWhole-number multiplier
quotientnumberValue of the ratio (a / b)
perFirstnumbern in 1 : n (b / a)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.simplify-ratio/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"a":12,"b":18},"locale":"en"}'
Example answer
{
  "output": {
    "simplifiedA": 2,
    "simplifiedB": 3,
    "gcd": 6,
    "scale": 1,
    "quotient": 0.6666666666666666,
    "perFirst": 1.5
  },
  "steps": [
    {
      "id": "gcd",
      "formula": "GCD = GCD(a, b)",
      "substitution": "GCD = GCD(12, 18)",
      "value": 6
    },
    {
      "id": "simplifiedA",
      "formula": "simplified a = a / GCD",
      "substitution": "simplified a = 12 / 6",
      "value": 2
    },
    {
      "id": "simplifiedB",
      "formula": "simplified b = b / GCD",
      "substitution": "simplified b = 18 / 6",
      "value": 3
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/simplify-ratio-calculator",
    "title": "Ratio Simplifier"
  }
}

Square Root and Cube Root Calculator

Id
math.square-root
Version
1.0.0
Access
Free
Tool page
Square Root and Cube Root Calculator
Schema
GET /api/v1/tools/math.square-root

Input

FieldTypeConstraintsDefaultDescription
x (required)number≥ -1,000,000,000,000, ≤ 1,000,000,000,000Number
ninteger≥ 2, ≤ 1002Index of the root (n) · 2 for a square root, 3 for a cube root.

Output

FieldTypeDescription
rootnumberRoot
coefficientnumberCoefficient outside the root (a)
radicandnumberNumber under the root (b)
notSimplifiedbooleanThe number is not whole, so the root is not simplified: a = 1 and b is the number itself.

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.square-root/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"x":72,"n":2},"locale":"en"}'
Example answer
{
  "output": {
    "root": 8.48528137423857,
    "coefficient": 6,
    "radicand": 2,
    "notSimplified": false
  },
  "steps": [
    {
      "id": "root",
      "formula": "root = √x",
      "substitution": "root = √72",
      "value": 8.48528137423857
    },
    {
      "id": "simplified",
      "formula": "√x = a × √b, a² × b = x",
      "substitution": "√72 = √(6² × 2) = 6 × √2",
      "value": 8.48528137423857
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/square-root-calculator",
    "title": "Square Root and Cube Root Calculator"
  }
}

Statistics Calculator

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

Input

FieldTypeConstraintsDefaultDescription
numbers (required)arrayNumbers · Separate with spaces, new lines, semicolons or commas. Use a decimal point and no thousands separators. Up to 1,000 numbers.

Output

FieldTypeDescription
countnumberCount
sumnumberSum
meannumberArithmetic mean
mediannumberMedian
minimumnumberMinimum
maximumnumberMaximum
rangenumberRange
modeCountnumberNumber of modes
modesarrayModes and frequencies
noModebooleanNo value repeats; there is no mode.
populationVariancenumberPopulation variance (σ²)
populationStandardDeviationnumberPopulation standard deviation (σ)
sampleVariancenumberSample variance (s²)
sampleStandardDeviationnumberSample standard deviation (s)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/math.statistics/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"numbers":[430,430,480,480,495]},"locale":"en"}'
Example answer
{
  "output": {
    "count": 5,
    "sum": 2315,
    "mean": 463,
    "median": 480,
    "minimum": 430,
    "maximum": 495,
    "range": 65,
    "modeCount": 2,
    "noMode": false,
    "modes": [
      {
        "value": 430,
        "frequency": 2
      },
      {
        "value": 480,
        "frequency": 2
      }
    ],
    "populationVariance": 756,
    "populationStandardDeviation": 27.49545416973504,
    "sampleVariance": 945,
    "sampleStandardDeviation": 30.740852297878796
  },
  "steps": [
    {
      "id": "count",
      "formula": "n = Count",
      "substitution": "n",
      "value": 5
    },
    {
      "id": "sum",
      "formula": "Σx = x₁ + … + xₙ",
      "substitution": "Σx",
      "value": 2315
    },
    {
      "id": "mean",
      "formula": "x̄ = Σx / n",
      "substitution": "2,315 / 5",
      "value": 463
    },
    {
      "id": "median",
      "formula": "Median = x₍(n+1)/2₎",
      "substitution": "x₍3₎",
      "value": 480
    },
    {
      "id": "minimum",
      "formula": "Minimum = x₍₁₎",
      "substitution": "x₍₁₎",
      "value": 430
    },
    {
      "id": "maximum",
      "formula": "Maximum = x₍ₙ₎",
      "substitution": "x₍5₎",
      "value": 495
    },
    {
      "id": "range",
      "formula": "Range = max − min",
      "substitution": "495 − (430)",
      "value": 65
    },
    {
      "id": "modeCount",
      "formula": "Number of modes = count(f(x) = fmax > 1)",
      "substitution": "Count of repeated values tied for highest frequency",
      "value": 2
    },
    {
      "id": "mode.1",
      "formula": "Modes and frequencies: Value",
      "substitution": "430 (Frequency: 2)",
      "value": 430
    },
    {
      "id": "mode.2",
      "formula": "Modes and frequencies: Value",
      "substitution": "480 (Frequency: 2)",
      "value": 480
    },
    {
      "id": "populationVariance",
      "formula": "σ² = Σ(x − x̄)² / n",
      "substitution": "3,780 / 5",
      "value": 756
    },
    {
      "id": "populationStandardDeviation",
      "formula": "σ = √σ²",
      "substitution": "√(756)",
      "value": 27.49545416973504
    },
    {
      "id": "sampleVariance",
      "formula": "s² = Σ(x − x̄)² / (n − 1)",
      "substitution": "3,780 / (5 − 1)",
      "value": 945
    },
    {
      "id": "sampleStandardDeviation",
      "formula": "s = √s²",
      "substitution": "√(945)",
      "value": 30.740852297878796
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/math/statistics-calculator",
    "title": "Statistics Calculator"
  }
}