Home > Casio > Personal Computer > Casio Z1 Gr User Manual

Casio Z1 Gr User Manual

Here you can view all the pages of manual Casio Z1 Gr User Manual. The Casio manuals for Personal Computer are available online for free. You can easily download all the documents as PDF.

Page 51

  51  ON GOTO    PURPOSE: Jumps to a specified branch destination in accordance with a specified branching condition. FORMAT:    branch destination line number     Line number  ON Condition GOTO [ # program area number ]  Numeric expression  Single character; 0-9      *Label       Label name     branch destination line number   Line number  [ , [ # program area number ] ]*  Single character; 0-9    *Label     Label name   EXAMPLE: ON A GOTO 100, 200, 300 PARAMETERS: 1. Branch condition: Numeric...

Page 52

  52  ON GOSUB    PURPOSE: Jumps to a specified subroutine in accordance with a specified branching condition. FORMAT:    branch destination line number     Line number  ON Condition GOSUB [ # program area number ]  Numeric expression  Single character; 0-9      *Label       Label name     branch destination line number   Line number  [ , [ # program area number ] ]*  Single character; 0-9    *Label     Label name   EXAMPLE: ON A GOSUB 1000, 1100, 1200 PARAMETERS: 1. Branch condition: Numeric expression...

Page 53

  53  IF-THEN-ELSE / IF-GOTO-ELSE    PURPOSE: Executes the THEN statement or GOTO statement when the specified condition is met. The ELSE statement is executed when the specified condition is not met. FORMAT:   THEN statement  statement IF condition  [ : statement ELSE [ : statement  Numeric expression  GOTO branch destination    branch destination    branch destination line number   Line number  With branch destination: # program area number ] ]*  Single character; 0-9    *Label     Label name...

Page 54

  54  FOR-NEXT    PURPOSE: Executes the program lines between the FOR statement and NEXT statement and increments the control variable, starting with the initial value. Execution is terminated when value of the control variable exceeds the specified final value. FORMAT: FOR control variable = initial value TO final value  Numeric variable name  Numeric expression  Numeric expression  [ STEP increment   ]  Numeric expression | NEXT [ control variable ] [ , control variable ] *  Numeric variable name...

Page 55

  55 7. The control variable retains the value that exceeds the final value (and terminates the loop) when loop execution is complete. With the loop FOR I=3 to 10 STEP 3 for example, the value of control variable I is 12 when execution of the loop is complete. 8. Jumping out of a FOR – NEXT loop is also possible. In that case, the current control variable value is retained in memory, and the loop can be resumed by returning with a GOTO statement.  REM (‘)   PURPOSE: Allow remarks or comments to be...

Page 56

  56  DATA   PURPOSE: Holds data for Reading by the READ statement. FORMAT: DATA [ data ] [ , [ data ] ] *  Constant  Constant  EXAMPLE: DATA 10,5,8,3 DATA CAT,DOG,LION PARAMETERS: 1. Data: String constants or numeric constants 2. String constants: Quotation marks are not required unless the string contains a comma that is part of the data. A null data string (length 0) is assumed when data is omitted from this statement. EXPLANATION:  P0  

Page 57

  57  5.8.4 Mathematical Functions  ABS   PURPOSE: Returns the absolute value of the argument. FORMAT: ABS (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE: ABS (-1.1) PARAMETERS: argument : numeric expression SEE: SGN  ACS   PURPOSE: Returns the angle value for which cosine (angle value) = argument. FORMAT: ACS (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the...

Page 58

  58  ASN   PURPOSE: Returns the angle value for which sine (angle value) = argument. FORMAT: ASN (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE: ASN (0.1) PARAMETERS:  argument must be within the [-1 , +1] range EXPLANATION: 1. The unit of the returned value is specified using the ANGLE function. 2. The returned value is in the [0 , 180°] or [0 , π Radians ] range. SEE: ANGLE, COS  ATN   PURPOSE: Returns the...

Page 59

  59  CUR   PURPOSE: Returns the cubic root of the argument. FORMAT: CUR (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE: Y = CUR (X) PARAMETERS:  argument: numeric expression. SEE: SQR  EXP   PURPOSE: Returns the value of e(argument). FORMAT: EXP (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE: EXP (1) PARAMETERS:...

Page 60

  60  FIX   PURPOSE: Returns the integer part of the argument. FORMAT: FIX (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE: FIX (-1.5) PARAMETERS:  argument : numeric expression SEE: INT, FRAC  FRAC   PURPOSE: Returns the fractional part of the argument. FORMAT: FRAC (argument)  Numeric expression The parenthesis enclosing the argument can be omitted when the argument is a numeric value or variable. EXAMPLE:...
Start reading Casio Z1 Gr User Manual
All Casio manuals