[comp.misc] Histogram program for HP-28C

cg@myrias.UUCP (02/18/87)

Is this the correct group for this?

Anyway, a friend and I were playing with my new HP-28C calculator this
weekend and played with the graphics a bit. After rearranging our program
a bit, the result is one which will plot a histogram of any column of the
statistics matrix. Put the column number on the stack and let it go.
In the following, '$' means the sigma character.

HIST:
<< -> c << PPAR 's' STO
   (1,0) PMIN
   N$ MAX$ R->C PMAX
   CLLCD
   1 N$ FOR i
      i 0
      '$DAT' i c 2 ->LIST GET
      FOR y DUP y R->C PIXEL NEXT
      DROP
   NEXT
   s 'PPAR' STO 's' PURGE >> >>

Great fun!!

		Chris Gray {ubc-vision,sask,ihnp4}!alberta!myrias!cg