29 Nov
2013
29 Nov
'13
6:11 p.m.
On 2013-11-29 15:42, Dan Asimov wrote:
Hmm, this apparently presumes that the input fractions are reduced.
'Cause if say 2 divides both a and b, and we input (a/2)/(b/2) instead of a/b, this would output (a/2 + c + e)/(b/2 + d + f) -- not the same thing.
--Dan
On 2013-11-29, at 11:44 AM, Bill Gosper wrote:
In[904]:= mediant[a/b, c/d, e/f]
Out[904]= (a + c + e)/(b + d + f)
Indeed. Maybe this is why Mathematica doesn't provide Mediant. In fact, when the kids and I roll our own, we usually include optional weight arguments by which to UNreduce the input fractions. --rwg