sgn(0) = 0 [Software]

posted by Helmut Homepage – Vienna, Austria, 2018-07-13 23:58 (805 d 05:11 ago) – Posting: # 19060
Views: 4,490

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,076 posts in 4,394 threads, 1,468 registered users;
online 15 (0 registered, 15 guests [including 2 identified bots]).
Forum time: Saturday 05:10 CEST (Europe/Vienna)

For every fact
there is an infinity of hypotheses.    Robert M. Pirsig

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