sgn(0) = 0 [Software]

posted by Helmut Homepage – Vienna, Austria, 2018-07-13 23:58 (928 d 12:57 ago) – Posting: # 19060
Views: 4,709

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,316 posts in 4,446 threads, 1,489 registered users;
online 6 (1 registered, 5 guests [including 3 identified bots]).
Forum time: Wednesday 11:56 CET (Europe/Vienna)

Nothing fails like success because you do not learn anything from it.
The only thing we ever learn from is failure.
Success only confirms our superstitions.    Kenneth E. Boulding

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