[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Should not integer exponentiation work when it works?
- From: Patrick Donnelly <batrick@...>
- Date: Thu, 9 Jun 2016 13:38:58 -0400
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