Re: Lua language extension for complex number and vector values
[
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 15:38:43 -0300
> What about an "operation mode" switch to in-place operations?
Much better.
> complex_enter() -- in-place now
> c = cexp(c * I) * a + b
> complex_exit() -- restore
> return c
I guess that you have be careful not to write in this order, right?
c = a * cexp(c * I) + b