Evaluation Rules - HP -28S Quick Reference

Hide thumbs Also See for HP-28S:
Table of Contents

Advertisement

Here der% is the derivative of %. In general:
'∂X(F(X1,x2))' EVAL returns 'derF(X1,x2,∂X(X1),∂X(X2))'
if F is not defined. derF is the unknow derivative of F. Each argument
in the original function produces two arguments to the derF function.
Further evaluation results in 'derF(X1,x2,0,0)' if neither variable
X1 nor X2 exists.
Now, the point is that the user can specify the derivative which is then
used by ∂:
<<→ x y dx dy '(x*dy+y*dx)/100'>> 'der%' STO stores the
user-defined derivative for %.
After this '%(X,3)' 'X' ∂ returns 0.03.
Note: I'm not sure whether this is useful. The problem is that most
interesting functions cannot be given in the required expressional
notation. For example, a wide range of integrals I(x)=∫ F(k)*dk can
only be calculated by numeric approximation. This can easily be done
in a program and furthermore the derivative derI is already known: It
is the function F that is being integrated. I(x) can even be executed in
functional notation (see Programs) but ∂ requires the explicit notation
as an expression in single quotes. Thus, ∂I(x) will produce an error
even though derI has been specified explicitly.
Variable
The contents of a variable replaces the variable name when:
names
Important:
• When the variable name contains multiple other names they are not
• Names that do not reference an existing variable are left unchanged:
• To retrieve the contents of a variable to the stack without evaluating it
• To edit the contents of stack level 1 use the EDIT command.
• A shortcut for editing the contents of a variable is the VISIT
Programs
Essentially the same rules apply as for variables.

Evaluation Rules

... pressing a menu button showing the variable name
... the name is entered in the command line without quotes and
ENTER is executed explicitly or implicitly.
... in a program the name is encountered without quotes.
... the EVAL command is executed on its quoted name.
evaluated when the variable is evaluated:
'A+B' 'C' STO C recalls 'A+B' into the stack and does not evaluate
A or B. Also, if C contained a list containing program or variable names
the list components will not be evaluated when the variable is
evaluated. Rather, the list is put back onto the stack as is.
However, when the variable contains a single other variable name it
will be evaluated:
'A' 'C' STO C puts the value of variable A onto the stack.
'W' PURGE W puts 'W' onto the stack.
use the RCL command.
command. It is a combination of RCL and EDIT. See Direct Key
Commands.
"Evaluation" of a program means the execution of the program.
HP-28S
45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents