{"id":"array-rational-min-max","version":"1.0.0","description":"Return the reduced numeric minimum and maximum of an array of canonical rationals.","supported_operations":["array rational min max","minimum and maximum of rationals","min and max of an array of fractions"],"unsupported_operations":["index of min or max","floating-point comparison","sort rationals","mean of rationals","decimal string min max","IEEE-754 arithmetic"],"semantics":["Input values is a non-empty array of rational objects with canonical integer-string numerator and denominator.","Each denominator must be a positive canonical integer; zero and negative denominators are rejected.","Comparison uses BigInt cross-multiplication: a.numerator * b.denominator versus b.numerator * a.denominator.","Each of min and max is the first-seen value among numeric equals, independently.","Outputs are reduced, with the sign only on the numerator; zero is numerator 0 over denominator 1.","At most 10000 values. Numerator and denominator of each output may have at most 1000 digits excluding sign."],"limits":{"max_values":10000,"max_digits":1000,"min_values":1},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["values"],"properties":{"values":{"type":"array","minItems":1,"maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","maxLength":1001},"denominator":{"type":"string","maxLength":1001}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","maxLength":1001},"denominator":{"type":"string","maxLength":1001}}},"max":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","maxLength":1001},"denominator":{"type":"string","maxLength":1001}}}}},"examples":[{"input":{"values":[{"numerator":"1","denominator":"2"},{"numerator":"2","denominator":"3"},{"numerator":"1","denominator":"4"}]},"output":{"min":{"numerator":"1","denominator":"4"},"max":{"numerator":"2","denominator":"3"}}}],"execute_url":"/v1/tools/array-rational-min-max/versions/1.0.0/execute"}