{"id":"array-rational-mean","version":"1.0.0","description":"Return the reduced arithmetic mean of an array of canonical rationals.","supported_operations":["array rational mean","average of rationals","mean of an array of fractions"],"unsupported_operations":["floating-point mean","weighted mean","median of rationals","standard deviation","decimal string mean","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.","The mean is the reduced sum of the values divided by the array length n.","A single-element array returns that element reduced.","The sign lives only on the numerator; zero is numerator 0 over denominator 1.","At most 10000 values. After reduction, numerator and denominator may each 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":["numerator","denominator"],"properties":{"numerator":{"type":"string"},"denominator":{"type":"string"}}},"examples":[{"input":{"values":[{"numerator":"1","denominator":"2"},{"numerator":"1","denominator":"3"},{"numerator":"1","denominator":"6"}]},"output":{"numerator":"1","denominator":"3"}}],"execute_url":"/v1/tools/array-rational-mean/versions/1.0.0/execute"}