From: jhmeyers@miu.edu (John H Meyers)
Newsgroups: comp.sys.hp48
Subject: Re: Equation Library grobs - are they accessible?
Date: 28 Aug 1998 04:31:59 GMT
Organization: MIU Computer Services,  Fairfield, IA 52557.  Not Approved.
Lines: 40
Message-ID: <6s5brv$7v3$2@news.iastate.edu>
References: <6rgmt0$mk8$1@reader1.reader.news.ozemail.net>,<6rlp9c$dp7$1@news.iastate.edu>
Reply-To: jhmeyers@miu.edu
NNTP-Posting-Host: vax1.mum.edu
Xref: republic.btigate.com comp.sys.hp48:15142

In article <6rgmt0$mk8$1@reader1.reader.news.ozemail.net>,
Jeff Roulston <jeff@lemcke.bu.aust.com> wrote:

> Is it possible to retrieve the grobs embedded in the
> G series equation library from within a program?

The previously posted program is improved a bit below.

The previous article explained how to touch up the
"User Equation Library in User RPL" to use
compressed grobs, or programs which return grobs.

Rustle up some grubby grobs for me, borg ;)

-----------------------------------------------------------
With best wishes from:   John H Meyers   <jhmeyers@mum.edu>
-----------------------------------------------------------

%%HP: T(3); @ Kermit settings

@ Similar to SOLVEQN command, but obtains [uncentered] grob only

@ subject title ==> grob [Equation Library]
@ E.g. 2 21 ==> "Toroid Inductance" grob [raw, uncentered]
@ (See Appendix F of G/GX User's Guide, or AUR Chapter 4)

\<< #E2015h LIBEVAL @ List of all Eq Lib subjects
    ROT GET EVAL @ The particular subject we want
    3 GET SWAP GET @ The particular title we want
    3 GET @ Its grob, if any (ROMPTR for its list)
    { } + DUP SIZE GET @ Mass-Spring System? (use last of 4 grobs)
    EVAL "" 0 \->GROB SWAP + DUP SIZE GET @ Packed hex string?
    DUP TYPE 10 == { #E3063h LIBEVAL } IFT \>> @ Unpack it
@ 135 bytes, #4C2Ah

@ Eq has no grob? ==> 0x0 grob

@ Out of range subject/title numbers:
@ GET Error: Bad Argument Value
