{
  "address": "89fccdcd886edb8f057539e5d4f55aac",
  "category": "other",
  "question": "What is the hypotenuse of a right triangle with legs 3 and 4?",
  "answer": "5.00",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Elements, Book I, Proposition 47 (the Pythagorean theorem)",
      "url": null
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "edition_page",
    "value": "Euclid. Elements, Book I, Proposition 47.",
    "retrieved_utc": "2026-09-30T19:47:00Z"
  },
  "qsha256": "8c6e5bbc5678e65f39dbd2e499dc3fb548446741b5d14d0e80a54e1821d32017",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Right triangle side by the Pythagorean theorem",
    "version": "1",
    "source_url_or_file": "methods/right-triangle-pythagoras.cjs",
    "sha256_of_method_file": "158ff739c2a2303997cb286a52f0c4a4cf7937d689430e0fdf01c77b6873f116"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "mode",
        "type": "string",
        "required": true,
        "description": "Which side to solve for.",
        "enum": [
          "find_hypotenuse",
          "find_leg"
        ]
      },
      {
        "name": "known_a",
        "type": "number",
        "unit": "length units",
        "required": true,
        "description": "For find_hypotenuse: one leg. For find_leg: the known leg.",
        "min": 0
      },
      {
        "name": "known_b",
        "type": "number",
        "unit": "length units",
        "required": true,
        "description": "For find_hypotenuse: the other leg. For find_leg: the hypotenuse.",
        "min": 0
      }
    ],
    "outputs": [
      {
        "name": "result",
        "unit": "length units",
        "description": "The computed hypotenuse (find_hypotenuse) or leg (find_leg)."
      }
    ],
    "steps": [
      "The Pythagorean theorem: for a right triangle with legs a and b and hypotenuse c, a^2 + b^2 = c^2.",
      "If mode is find_hypotenuse: c = sqrt(known_a^2 + known_b^2), where known_a and known_b are the two legs.",
      "If mode is find_leg: known_b is the hypotenuse and known_a is a leg; the missing leg = sqrt(known_b^2 - known_a^2). known_b must be greater than known_a.",
      "Round to 2 decimals."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "mode": "find_hypotenuse",
          "known_a": 3,
          "known_b": 4
        },
        "expected": {
          "answer": "5.00"
        },
        "check": "3-4-5 is the classic Pythagorean triple, independently known: 3^2+4^2=9+16=25=5^2."
      },
      {
        "name": "test vector: find a leg",
        "inputs": {
          "mode": "find_leg",
          "known_a": 5,
          "known_b": 13
        },
        "expected": {
          "answer": "12.00"
        },
        "check": "5-12-13 is the classic Pythagorean triple, independently known: 13^2-5^2=169-25=144=12^2."
      }
    ],
    "disclaimer": null,
    "deck_category": "geometry"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "edition_page",
          "value": "Euclid. Elements, Book I, Proposition 47.",
          "retrieved_utc": "2026-09-30T19:47:00Z"
        },
        "sha256": "f29e30ca12908f8f3704da6dfadac0f66aebb6696d8f5442a65006d8d167062d",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Right triangle side by the Pythagorean theorem",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
