Re: [Math] Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

2013-10-30 Thread Luc Maisonobe
Le 29/10/2013 23:04, Gilles a écrit : > On Tue, 29 Oct 2013 20:14:19 +0100, Luc Maisonobe wrote: >> Le 29/10/2013 15:00, Gilles a écrit : >>> Hello. >> >> Hi Gilles, >> >>> >>> While working on MATH-1047, I wondered about the usefulness of those >>> two methods. Excluding the trivial case (base=|1|

Re: [Math] Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

2013-10-29 Thread Gilles
On Tue, 29 Oct 2013 20:14:19 +0100, Luc Maisonobe wrote: Le 29/10/2013 15:00, Gilles a écrit : Hello. Hi Gilles, While working on MATH-1047, I wondered about the usefulness of those two methods. Excluding the trivial case (base=|1|), the result will overflow as soon as the exponent is large

Re: [Math] Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

2013-10-29 Thread Luc Maisonobe
Le 29/10/2013 15:00, Gilles a écrit : > Hello. Hi Gilles, > > While working on MATH-1047, I wondered about the usefulness of those > two methods. Excluding the trivial case (base=|1|), the result will > overflow as soon as the exponent is larger than 31, when base=|2|, > and sooner the larger th

[Math] Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

2013-10-29 Thread Gilles
Hello. While working on MATH-1047, I wondered about the usefulness of those two methods. Excluding the trivial case (base=|1|), the result will overflow as soon as the exponent is larger than 31, when base=|2|, and sooner the larger the base. Hence, the methods amount to syntactic sugar to spare