(12C) Signum Function
|
03-04-2019, 10:57 AM
Post: #22
|
|||
|
|||
RE: (12C) Signum Function
(03-02-2019 03:00 AM)Gerson W. Barbosa Wrote: That's a nice one. I probably would have used e^x to convert 0 into 1, but n! does it either, and maybe it's a tiiiiiiiiiny bit faster. This also makes a nice ABS code: Code: 01 ENTER This leaves the original input in Y and its absolute value in X. And again it does not have the problems of the x² √x method: it neither underflows for very small values not does it cause inaccuracies for about one out of five arguments (cf. Thomas' post). Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)