This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients LambertDW, mark.dickinson
Date 2008-01-21.04:33:23
SpamBayes Score 0.023068197
Marked as misclassified No
Message-id <1200890005.42.0.675662286525.issue1880@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure either that such a generalization would belong in math (which right now 
does little more than expose some basic functions from the C library) or that it 
should be called hypot.

It seems to me that this would belong with other vector-type math stuff, but there 
isn't any of that in core Python or the libraries at the moment.

On one hand, this falls foul of the 'not every one-liner should be a builtin' rule.  
On the other hand, it's not a one-liner if done properly:  compare the output of 
math.hypot(1e160, 1e160) with the output of your version.  Similarly for 
math.hypot(1e-160, 1e-160).
History
Date User Action Args
2008-01-21 04:33:25mark.dickinsonsetspambayes_score: 0.0230682 -> 0.023068197
recipients: + mark.dickinson, LambertDW
2008-01-21 04:33:25mark.dickinsonsetspambayes_score: 0.0230682 -> 0.0230682
messageid: <1200890005.42.0.675662286525.issue1880@psf.upfronthosting.co.za>
2008-01-21 04:33:23mark.dickinsonlinkissue1880 messages
2008-01-21 04:33:23mark.dickinsoncreate