Local; Lvar - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Radians mode must be set (flag –17 set).
Example 1:
Simplify the following expression:
2(ln(x)+ln(y))
Command:
LNCOLLECT(2(LN(X)+LN(Y))
Result:
LN(X^2*Y)
Example 2:
Compare the effect of LNCOLLECT with the effect of EXP2POW on the expression e
Command:
LNCOLLECT(EXP(N*LN(X))
Result:
EXP(N*LN(X))
See also:
EXP2POW, TEXPAND

LOCAL

Type:
Command
Description:
Creates one or more local variables. This command is intended mainly for use in Algebraic
mode; it can not be single stepped when a program containing it is being debugged in
Algebraic mode.
Catalog, ...µ
Access:
Input:
Level 1/Argument 1: A list of one or more local variable names (names beginning with the
local variable identifier ←), each one followed by an equals sign and the value to be stored in
it. Any variable not followed by an equal sign and a value is set equal to zero.
Output:
Level 1/Item 1: The input list.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example:
Create local variables ←A and ←B and store the values 0 in the first and 2 in the second.
Command:
LOCAL({ A, B=2})
Result:
{ A, B=2}
See also:
DEF, STORE, UNBIND

LVAR

Type:
Command
Description:
Returns a list of variables in an algebraic object. Differs from LNAME above in that
functions of variables, such as COS(X) or LN(AB) are returned, instead of the variable names,
X or AB. INV() and SQ() are not treated as functions. Compare the example here with the
same example in LNAME.
Catalog, ...µ
Access:
Input:
An algebraic object.
Output:
Level 2/Item 1: The algebraic object.
Level 1/Item 2: A list which includes both the original expression and a vector containing the
variable names. Variable names include functions of variables, as described above. The names
are sorted by length, longest first, and ones of equal length are sorted alphabetically.
Flags:
Exact mode must be set (flag –105 clear).
Numeric mode must not be set (flag -3 clear).
Example:
List the variables and function names in the expression COS(B)/2*A + MYFUNC(PQ) +
1/T.
Command:
LVAR(COS(B)/2*A + MYFUNC(PQ) + INV(T))
4-50 Computer Algebra Commands
n·ln(x)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents