(33s) Implementation of NOT Function - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (33s) Implementation of NOT Function (/thread-18651.html) |
(33s) Implementation of NOT Function - Gerald H - 08-09-2022 08:19 AM Takes any number N from stack and returns NOT(N). Any number of absolute value not zero returns zero, zero returns one. Preserves stack. Can anyone find a more economical version while preserving the stack? Code: 1. LBL N RE: (33s) Implementation of NOT Function - Gerald H - 09-03-2022 04:07 AM YES! But not good for small values, eg input of 0.00000001. Code: 1. LBL N But fastest is Code: 1. LBL N RE: (33s) Implementation of NOT Function - Eddie W. Shore - 09-22-2022 12:19 PM It's fascinating to see a trig function in one of the codes. |