Post Reply 
(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
(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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(10C) ABSolute value Function - Gamo - 01-08-2019 06:43 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



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