Casio ClassPad II fx-CP400+E User Manual page 212

Graphing calculator
Table of Contents

Advertisement

HypergeoCD
Syntax: HypergeoCD Lower value, Upper value,
M
N
value,
value,
value
Function: See "Hypergeometric Cumulative
Distribution" (page 153).
HypergeoPD
Syntax: HypergeoPD
value
Function: See "Hypergeometric Distribution
Probability" (page 153).
I
If~Then~ElseIf~Else~IfEnd
Syntax 1: If <expression> : Then : [<statement>] ...
: IfEnd
Function 1:
• If the expression is true, the statement in the Then
block is executed. After that, execution advances to
the next statement after IfEnd.
• If the expression is false, execution advances to the
next statement after IfEnd, without executing the
statement in the Then block.
Syntax 2: If <expression> : Then : [<statement>] ... :
Else : [<statement>] ... : IfEnd
Function 2:
• If the expression is true, the statement in the Then
block is executed. After that, execution advances to
the next statement after IfEnd.
• If the expression is false, the statement in the Else
block is executed instead of the Then block. After
that, execution advances to the next statement after
IfEnd.
Syntax 3: If <expression> : Then : [<statement>] ... :
ElseIf <expression> : Then : [<statement>] ... : IfEnd
Function 3:
• If the expression is true, the statement in the If Then
block is executed. After that, execution advances to
the next statement after IfEnd.
• If the If command expression is false, the ElseIf
command expression is tested. If it is true, the
statement in the ElseIf Then block is executed.
After that, execution advances to the next statement
after IfEnd. If it is false, execution advances to the
next statement after IfEnd.
Syntax 4: If <expression> : Then : [<statement>] ... :
ElseIf <expression> : Then : [<statement>] ... : Else :
[<statement>] ... : IfEnd
Function 4:
• If the expression is true, the statement in the If Then
block is executed. After that, execution advances to
the next statement after IfEnd.
• If the If command expression is false, the ElseIf
command expression is tested. If it is true, the
statement in the ElseIf Then block is executed.
After that, execution advances to the next statement
after IfEnd. If it is false, the Else block statement is
k
k
x
n
M
value,
value,
value,
executed. After that, execution advances to the next
statement after IfEnd.
n
Description:
• With all four of the syntaxes described above, you
can use a multi-statement command (:) in place
of the carriage return to separate Then block
statements.
• The If~IfEnd command can be nested.
N
• The If~IfEnd loop can be exited using the Break
command or Return command.
• Do not use the Goto command to exit an If~IfEnd
loop.
IfEnd
Ctrl - If
See If~Then~ElseIf~Else~IfEnd.
Input
Syntax: Input <variable name>[,"<string 1>"[,"<string
2>"]]
Function: When program execution reaches the Input
command, the user is prompted for input of a value,
which is assigned to the specified variable.
Description:
• If you do not specify anything for "<string 1>", the
prompt "<variable name>?" appears by default.
• The text specified for "<string 2>" is used as the
input dialog box title.
• This command pauses program execution and
displays a dialog box that contains the text string
indicated by "<string 1>" and an input box. A text
string enclosed within quotation marks (" ") or a
variable name can be specified for "<string 1>".
• Specifying a long text string can cause part of it to
be cut off when it is displayed in the dialog box.
• When the dialog box appears, input a value into
the input box and then tap [OK]. This closes the
dialog box, assigns the input value to the applicable
variable and resumes program execution.
• Tapping [Cancel] on the dialog box terminates
program execution.
Note:
• During execution of the Input command, program
execution is paused for input of data. While a
program is paused, you can input individual
mathematical expressions only. You cannot input
commands or a series of statements joined by
colons (:).
Chapter 12: Program Application  212
Chapter 12: Program Application  212
Ctrl - If
I/O - Input

Advertisement

Table of Contents
loading

Table of Contents