Here's DER1, a differentiation front end that does for derivatives what
my INT2 program does for integrals - not much, but if the defaults are
acceptable, it only needs two keypresses, and it can also find any order
derivative, not just the first.

Usage: if your expression is already in EXPR, just press DER1. The three
fields contain the expression (contents of EXPR), the variable of
differentiation (default 'X'), and the derivative order (default '1').
Edit if you want to, or just press Enter to get the first derivative.

If your expression isn't in EXPR, the "Exp:" field will just have two
tick marks. Enter your expression. Note that it won't be saved in EXPR,
although you can add that easily enough if you want to.

Output: if the variable X (or whatever you choose to use) exists as a
stored variable with a real number in it, the derivative will be
numerical. If X doesn't exist, the derivative will be symbolic. If X
exists and has something like "FOO" in it, the derivative will probably
be gibberish.

Error-trapping: almost none, although the whole program is surrounded by
an IFERR so that you can exit gracefully by pressing ON twice (the first
press just clears the Input fields). Should you press Enter with nothing
in the "Exp:" field, you'll get a syntax error - these seem to arise
because of the Input structure's "V" and are immune to IFERR handling;
edit or keep pressing ON to exit.

The checksum and size on the stack: #D0E1h and 207.5 bytes.

Enjoy.

Bill Markwick
bd628@torfree.net


%%HP: T(3)A(R)F(.);
\<<
  IFERR
"Edit or press Enter"
":Exp.:"
    IFERR 'EXPR'
RCL \->STR +
    THEN DROP "''"
+
    END
"
:Var.:'X'
:Der.:'1'"
+ { ALG V { 1 8 } }
+ INPUT OBJ\-> ROT 1
ROT
    FOR N OVER \.d
    NEXT SWAP DROP
COLCT
  THEN 2 DROPN
  END
\>>

