Re: Should not integer exponentiation work when it works?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Should not integer exponentiation work when it works?
 
- From: Coda Highland <chighland@...>
 
- Date: Thu, 9 Jun 2016 10:40:07 -0700
 
On Thu, Jun 9, 2016 at 10:38 AM, Patrick Donnelly <batrick@batbytes.com> wrote:
> On Thu, Jun 9, 2016 at 10:30 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
>> Am 09.06.2016 um 16:04 schröbte Patrick Donnelly:
>>>
>>> On Thu, Jun 9, 2016 at 4:45 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>>>
>>>>
>>>> v=(2*n+1)^2
>>>>
>>>
>>> v = (2*n+1)<<1
>>
>>
>> That would be equivalent to `(2*n+1)*2`.
>
> Exactly, except my version returns an integer (the problem Dirk is
> having is he wants an integer...).
>
> --
> Patrick Donnelly
>
Yes, but it's the WRONG integer. >.>
/s/ Adam