[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua language extension for complex number and vector values
- From: Luis Carvalho <lexcarvalho@...>
- Date: Mon, 4 Apr 2011 14:42:26 -0400
> > 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
Right: order matters for in-place operations.
Cheers,
Luis
--
Computers are useless. They can only give you answers.
-- Pablo Picasso
--
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'