Re: Absolute value of intervals

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Absolute value of intervals
Дата
Msg-id 20091102124746.GF5407@samason.me.uk
обсуждение исходный текст
Ответ на Re: Absolute value of intervals  (Jasen Betts <jasen@xnet.co.nz>)
Список pgsql-general
On Mon, Nov 02, 2009 at 11:22:00AM +0000, Jasen Betts wrote:
> On 2009-10-27, Sam Mason <sam@samason.me.uk> wrote:
> > On Tue, Oct 27, 2009 at 03:25:02PM +0000, Sam Mason wrote:
> >> If the absolute value of an interval was defined to strip out all the
> >> negation signs you'd get the "wrong" answers out.
> >
> > Oops, forgot another reason!  For maths to work (n) and (-(-n)) should
> > evaluate to the same value.  Inverting all the signs, as negation does,
> > will ensure that these semantics remain.

Hum, I'm not entirely sure what I was thinking when I wrote the above.
it's got nothing to do with taking absolute values!

> There not requrement in mathematics that
>
> z be a member of the set  { abs(z) , -abs(z) }
>
> consider the case of z=sqrt(-1)

That said, I don't follow your point at all.

--
  Sam  http://samason.me.uk/

В списке pgsql-general по дате отправления:

Предыдущее
От: Vasiliy G Tolstov
Дата:
Сообщение: Re: cidr data type question
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Absolute value of intervals