Idiv2; Iegcd; Iferr - HP 48gII Advanced User's Reference Manual

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

Advertisement

See also:
CON

IDIV2

CAS:
For two integers, a and b, return the integer part of a/b, and the remainder, r.

IEGCD

CAS:
Given integers x and y, return integers, a, b, and c, where ax+by=c and, c is the GCD of x and y.
IF
Type:
Command Operation
Description: IF Conditional Structure Command: Starts IF ... THEN ... END and IF ... THEN ... ELSE
... END conditional structures.
Conditional structures, used in combination with program tests, enable a program to make
decisions.
• IF ... THEN ... END executes a sequence of commands only if a test returns a nonzero
(true) result. The syntax is:
IF test-clause THEN true-clause END
IF begins the test clause, which must return a test result to the stack. THEN removes the test
result from the stack. If the value is nonzero, the true clause is executed. Otherwise, program
execution resumes following END.
• IF ... THEN ... ELSE ... END executes one sequence of commands if a test returns a true
(nonzero) result, or another sequence of commands if that test returns a false (zero) result.
The syntax is:
IF test-clause THEN true-clause ELSE false-clause END
IF begins the test clause, which must return a test result to the stack. THEN removes the test
result from the stack. If the value is nonzero, the true clause is executed. Otherwise, the false
clause is executed. After the appropriate clause is executed, execution resumes following
END.
In RPL mode, the test clause can be a command sequence (for example, A B ) or an algebraic
(for example, '
( NUM or EVAL isn ' t necessary).
Access:
Input/Output:
See also:
CASE, ELSE, END, IFERR, THEN

IFERR

Type:
Command
Description: If Error Conditional Structure Command: Starts IFERR ... THEN ... END and IFERR ...
THEN ... ELSE ... END error trapping structures.
)'. If the test clause is an algebraic, it is automatically evaluated to a number
BRANCH IF
Level 1/Argument 1
IF
THEN
END
IF
THEN
ELSE
END
( °is the left-shift of the Nkey).
T/F
T/F
Full Command and Function Reference 3-81
Level 1/Item 1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents