Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: The arbitrary operator maker

by ikegami (Pope)
on Nov 22, 2006 at 21:16 UTC ( #585612=note: print w/replies, xml ) Need Help??

in reply to The arbitrary operator maker

You mention performing operations 83, 97 and even 4000 elements. I'd just like to point out that some floating points operations are more accurate when performed on numbers of similar magnitude, so using an accumulator (such as all the presented methods use) is not ideal in those circumstances.