(12C) Signum Function
|
03-01-2019, 06:29 AM
(This post was last modified: 03-03-2019 02:18 AM by Gamo.)
Post: #1
|
|||
|
|||
(12C) Signum Function
Signum Function is an odd mathematical function that extracts
the sign of a real number. In mathematical expressions the sign function is often represented as sgn. The Signum Function of a real number (x) is defined as follows: sgn(x) = -1 if x < 0 sgn(x) = 0 if x = 0 sgn(x) = 1 if x > 0 For more detail on this topic https://en.wikipedia.org/wiki/Sign_function ------------------------------------------------- Example: 123 [R/S] display 1 -23.33 [R/S] display -1 0 [R/S] display 0 ------------------------------------------------- Program: for HP-12C Code:
Program: for HP-12C Platinum on RPN mode Code:
Gamo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)