lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Jun 9, 2016 at 1:40 PM, Coda Highland <chighland@gmail.com> wrote:
> 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. >.>

Ugh, I should never do math online. Brain fart.

/shame

-- 
Patrick Donnelly