HP Forums
(12C) THE LIMIT - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (12C) THE LIMIT (/thread-15718.html)



(12C) THE LIMIT - Gamo - 10-12-2020 04:36 AM

Was reading this book called "Making Tracks Into Programming" and all programs
in this book is for the TI57 Programmable Calculator so I found this topic about

"The LIMIT" on page 9-12 interesting so I adapted this program to work
on the HP-12C for observation purpose.

Detail information: https://archive.org/details/Makingtracksintoprogramming/a4compilation/page/942/mode/2up

Program: [FIX] 9

R1 for Limit Point
R2 for Starting Point

Code:

01 RCL 2
02 RCL 1
03  -
04  .
05  5
06  x
07 RCL 1
08  +
09 STO 2
10 PSE
11 RCL 2
12 LN
13 RLC 2
14  1
15  -
16  รท
17 PSE
18 PSE
19 GTO 01

Example as shown in the book:
Set Limit to 1
Start from 4

1 [STO] 1
4 [STO] 2
[R/S] display x Value ..... f(x) Value ........... diverge to 1

Remark:
The program as shown in this book illustrated the use of the
"Subroutine" in this case the 12C doesn't have [GSB] function
so the way around is as shown in this program above but ususally
it is not the way around but straightforward approach. Smile

Gamo 10/2020