sgn(0) = 0 [Software]

posted by Helmut Homepage – Vienna, Austria, 2018-07-13 23:58 (1202 d 07:47 ago) – Posting: # 19060
Views: 5,689

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,760 posts in 4,550 threads, 1,545 registered users;
online 8 (0 registered, 8 guests [including 2 identified bots]).
Forum time: Thursday 07:45 CEST (Europe/Vienna)

Always remember that you are absolutely unique.
Just like everyone else.    Margaret Mead

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