sgn(0) = 0 [Software]

posted by Helmut Homepage – Vienna, Austria, 2018-07-13 23:58 (1242 d 19:38 ago) – Posting: # 19060
Views: 5,794

Hi mittyri,

» A question:
» is 0 a positive endpoint?

Nope. 0 is by definition neither positive nor negative.*

sgn(x < 0) = –1
sgn(x = 0) =   0
sgn(x > 0) = +1

Also

x = sgn(x)·|x|

Logarithms are defined only for >0.



Dif-tor heh smusma 🖖
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

Activity
 Admin contact
21,788 posts in 4,557 threads, 1,548 registered users;
online 6 (0 registered, 6 guests [including 4 identified bots]).
Forum time: Tuesday 18:37 CET (Europe/Vienna)

A big computer, a complex algorithm and a long time
does not equal science.    Robert Gentleman

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5