(10C) ABSolute value Function
01-08-2019, 06:43 AM (This post was last modified: 01-08-2019 06:45 AM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 738 Joined: Dec 2016
(10C) ABSolute value Function
This little program steps is use for [ABS] the "Absolute Value" function.

This program steps only use "Test Function" while other method use
Arithmetic calculations to get the Absolute Value.

Here is the Arithmetic method: [X^2] [√X]

Test Function method: 0 [X<>Y] [X≤Y] [CHS]

----------------------------------------------------

Example: Program to calculate + or - [√X] using ABS

100 [R/S] display 10

100 [CHS] [R/S] display 10

---------------------------------------------------
Program: Calculate [√X] using ABS to only return positive value
Code:
 0 X<>Y X≤Y CHS √X

Remark: This routine also work on HP-12C

Gamo
 « Next Oldest | Next Newest »

 Messages In This Thread (10C) ABSolute value Function - Gamo - 01-08-2019 06:43 AM RE: (10C) ABSolute value Function - Paul Dale - 01-08-2019, 07:47 AM RE: (10C) ABSolute value Function - Gamo - 01-08-2019, 08:07 AM RE: (10C) ABSolute value Function - Gamo - 01-09-2019, 03:12 AM RE: (10C) ABSolute value Function - Paul Dale - 01-09-2019, 04:14 AM RE: (10C) ABSolute value Function - Eddie W. Shore - 01-11-2019, 04:54 AM

User(s) browsing this thread: 1 Guest(s)