Hi Paul, > > I'd actually prefer to write (m*v**2)/2. Or (m/2)*v**2. But those > wouldn't work, the way you describe your proposal. And I'd be very > concerned if they behaved differently than 1/2 * m * v**2...
Sure they do work, and they work exactly the same way. That is acually the point: currently 1/2 * m * v**2 is not the same as (m/2) * v**2 (in sympy, that is), with my proposal it would be exactly the same (again, from my prototype, not fake): >>> m, v, r = symbols("m v r") >>> 1/2 * m * v**2 m*v**2/2 >>> (m/2) * v**2 m*v**2/2 >>> (m * v**2) / 2 m*v**2/2 >>> 4/3 * pi * r**3 4*pi*r**3/3 Cheers Martin _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JBZYZBYR4I4EBW2EQ3VWDPUAQE2KQPRC/ Code of Conduct: http://python.org/psf/codeofconduct/