[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua evolution and C99
- From: David Kastrup <dak@...>
- Date: Tue, 09 Aug 2011 07:33:08 +0200
Leo Razoumov <email@example.com> writes:
> Actually, making lua_Numbers complex is a bad idea. Complex numbers do
> not have a natural ordering relationship like real numbers do.
> With integers or real numbers you can assert that for any x,y
> assert((not (x<y) and not (y<x)) == (x==y))
> For complex numbers such an ordering operator does not exist.
Lexicographical ordering works just fine and fulfills that condition.
You could also just order the bit patterns. Lots of other
They are not useful in the context of saying anything about Cauchy
sequences, but fine for creating n log n algorithms requiring a
dependable sorting order.