From: HyperZot@aol.com
Newsgroups: comp.sys.hp48
Subject: Re: Does anybody know if....
Date: Thu, 14 May 1998 16:33:53 -0700
Organization: Flashnet Communications, http://www.flash.net
Lines: 46
Message-ID: <HyperZot-1405981633540001@tuctc6-52.flash.net>
References: <35586043.E03173DD@com.se> <3558f400.0@isoit370.bbn.hp.com> <6jdlff$b5v$1@nnrp1.dejanews.com>
NNTP-Posting-Host: tuctc6-52.flash.net
Xref: republic.btigate.com comp.sys.hp48:10558

Here is the program I wrote for my friend who
wanted a table program:

<<{ X } SWAP { EVAL 4 RND } + + 'X' 
"Table Data"
{ ":Start:
:End:
:Step:"
{ 1 0 } V } INPUT
OBJ-> SEQ OBJ-> 2 / {
2 } + ->ARRY
>>

Where "->" is the right facing arrow.
Say you want to evauate "x^2" from 1 to 10, with a step of 2

Here's the stack:

4:
3:
2:
1:      'x^2'

Then run Table.

It brings up a list like this:

Table Data
:Start:
:End:
:Step"

Fill in the numbers (1, 10, & 2)  [you can use partial steps, like .5, etc.]

It will put an array on the stack, of 2 dimensions, like this:
[[ 1 1] [3 9] [5 25] .......]

Then, just choose "VIEW" to see the table in the matrix writer.

In short:
1. put the equation on the stack
2. run TABLE and fill in the numbers
3. push the VIEW button to see the table

Cool, eh?
Christopher Tuttle