| От | Jasen Betts |
|---|---|
| Тема | Re: Absolute value of intervals |
| Дата | |
| Msg-id | hcmfco$55l$2@reversiblemaps.ath.cx обсуждение исходный текст |
| Ответ на | Absolute value of intervals (Joshua Berry <yoberi@gmail.com>) |
| Ответы |
Re: Absolute value of intervals
|
| Список | pgsql-general |
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.
There not requrement in mathematics that
z be a member of the set { abs(z) , -abs(z) }
consider the case of z=sqrt(-1)
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера