[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua language extension for complex number and vector values
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 4 Apr 2011 11:21:38 -0300
> 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.