Skip to content
HALOWERK

Rechenwerk

engineering dimension expression check

Return the SI dimension vector of a declared unit-factor product and compare it with an expected dimension.

POST https://rechen.halowerk.com/v1/engineering-dimension-expression-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
factorsarrayYes
expectedarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "factors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "unit": {
            "enum": [
              "m",
              "kg",
              "s",
              "A",
              "K",
              "mol",
              "cd",
              "N",
              "Pa",
              "J",
              "W",
              "V",
              "Ohm",
              "Hz"
            ]
          },
          "power": {
            "type": "integer",
            "minimum": -10,
            "maximum": 10
          }
        },
        "required": [
          "unit",
          "power"
        ],
        "additionalProperties": false
      },
      "maxItems": 30,
      "minItems": 1
    },
    "expected": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": -100,
        "maximum": 100
      },
      "maxItems": 7,
      "minItems": 7
    }
  },
  "required": [
    "factors",
    "expected"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "factors": [
    {
      "unit": "N",
      "power": 1
    },
    {
      "unit": "m",
      "power": -2
    }
  ],
  "expected": [
    -1,
    1,
    -2,
    0,
    0,
    0,
    0
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →