{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.voltage_divider.input.json",
  "title": "Voltage divider — input",
  "type": "object",
  "oneOf": [
    {
      "title": "solve-Vout",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "Vin",
        "R1",
        "R2"
      ],
      "properties": {
        "Vin": {
          "type": "number",
          "minimum": 0,
          "description": "Source voltage (V)"
        },
        "R1": {
          "type": "number",
          "minimum": 0,
          "description": "Upper resistor (Ω)"
        },
        "R2": {
          "type": "number",
          "minimum": 0,
          "description": "Lower resistor (Ω)"
        }
      }
    },
    {
      "title": "solve-R2",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "Vin",
        "R1",
        "Vout"
      ],
      "properties": {
        "Vin": {
          "type": "number",
          "minimum": 0,
          "description": "Source voltage (V)"
        },
        "R1": {
          "type": "number",
          "minimum": 0,
          "description": "Upper resistor (Ω)"
        },
        "Vout": {
          "type": "number",
          "minimum": 0,
          "description": "Tap voltage across R2 (V)"
        }
      }
    },
    {
      "title": "solve-R1",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "Vin",
        "R2",
        "Vout"
      ],
      "properties": {
        "Vin": {
          "type": "number",
          "minimum": 0,
          "description": "Source voltage (V)"
        },
        "R2": {
          "type": "number",
          "minimum": 0,
          "description": "Lower resistor (Ω)"
        },
        "Vout": {
          "type": "number",
          "minimum": 0,
          "description": "Tap voltage across R2 (V)"
        }
      }
    },
    {
      "title": "solve-Vin",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "R1",
        "R2",
        "Vout"
      ],
      "properties": {
        "R1": {
          "type": "number",
          "minimum": 0,
          "description": "Upper resistor (Ω)"
        },
        "R2": {
          "type": "number",
          "minimum": 0,
          "description": "Lower resistor (Ω)"
        },
        "Vout": {
          "type": "number",
          "minimum": 0,
          "description": "Tap voltage across R2 (V)"
        }
      }
    }
  ],
  "description": "Solve unloaded two-resistor divider networks from exactly three of Vin, R1, R2, Vout; also returns series current, resistor power, divider ratio, and Thevenin output resistance Rth. (calculation_version 1.5.1)"
}
