lua-users home
lua-l archive

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


> One way of doing this in Numlua 0.3 is to use the optional "in-place" argument
> to complex functions:

I didn't know about this. Nice!
 
>   -- a * exp(I * z) + b)
>   return z:copy(c):mul(I, true):exp(true):mul(a, true):add(b, true)

Sorry, not nice! Plus you need some sort of compiler (like the one I posted
a few days ago) to make this at least bearable to the user.