{"id":"ideal-gas-state-solve","version":"1.0.0","description":"Solve one missing ideal-gas state variable from exact decimal SI inputs using the pinned 2019 SI gas constant.","supported_operations":["solve ideal gas pressure","compute ideal gas volume","calculate amount of ideal gas","find ideal gas temperature","solve PV equals nRT","ideal gas state calculation"],"unsupported_operations":["apply a real gas equation of state","convert non-SI customary units"],"semantics":["Exactly the variable named by solve_for must be omitted; the other three state quantities must be present and positive.","R is pinned to 8.31446261815324 Pa m3 mol^-1 K^-1; supported units convert exactly to SI.","result is the exact reduced rational and an 18-significant-digit decimal rounded to nearest, ties to even."],"limits":{"max_input_bytes":1024,"max_decimal_chars":64,"max_decimal_digits":50,"max_decimal_scale":24},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"solve_for":{"type":"string","enum":["pressure","volume","amount","temperature"]},"pressure":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"string","minLength":1,"maxLength":64},"unit":{"type":"string","enum":["Pa","kPa","bar"]}},"required":["value","unit"]},"volume":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"string","minLength":1,"maxLength":64},"unit":{"type":"string","enum":["m3","L"]}},"required":["value","unit"]},"amount":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"string","minLength":1,"maxLength":64},"unit":{"type":"string","enum":["mol"]}},"required":["value","unit"]},"temperature":{"type":"object","additionalProperties":false,"properties":{"value":{"type":"string","minLength":1,"maxLength":64},"unit":{"type":"string","enum":["K"]}},"required":["value","unit"]}},"required":["solve_for"]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"solve_for":{"type":"string","enum":["pressure","volume","amount","temperature"]},"value":{"type":"string","minLength":1},"unit":{"type":"string","enum":["Pa","m3","mol","K"]},"exact_fraction":{"type":"object","additionalProperties":false,"properties":{"numerator":{"type":"string","pattern":"^[1-9][0-9]*$"},"denominator":{"type":"string","pattern":"^[1-9][0-9]*$"}},"required":["numerator","denominator"]},"gas_constant":{"type":"string","const":"8.31446261815324"}},"required":["solve_for","value","unit","exact_fraction","gas_constant"]},"examples":[{"input":{"solve_for":"pressure","volume":{"value":"1","unit":"m3"},"amount":{"value":"1","unit":"mol"},"temperature":{"value":"1","unit":"K"}},"output":{"solve_for":"pressure","value":"8.31446261815324","unit":"Pa","exact_fraction":{"numerator":"207861565453831","denominator":"25000000000000"},"gas_constant":"8.31446261815324"}},{"input":{"solve_for":"volume","pressure":{"value":"100","unit":"kPa"},"amount":{"value":"1","unit":"mol"},"temperature":{"value":"273.15","unit":"K"}},"output":{"solve_for":"volume","value":"0.0227109546414855751","unit":"m3","exact_fraction":{"numerator":"1135547732074278753","denominator":"50000000000000000000"},"gas_constant":"8.31446261815324"}}],"execute_url":"/v1/tools/ideal-gas-state-solve/versions/1.0.0/execute"}