Programming1. Before Programming2. Programming Examples3. Debugging a Program4. Calculating the Number of Bytes Used by a Program5. Secret Function6.
134Chapter 8 ProgramminguuuuuTo recall a program ExampleTo recall the file named AREA which is protected by thepassword CASIO1. In the program list,
135Programming Chapter 8uuuuuTo find a file using file name search Example To use file name search to recall the program named OCTA1. While the progr
136Chapter 8 Programming2. Recall the program.• The procedures you use for editing program contents are identical to those usedfor editing manual calc
137Programming Chapter 8As you can see, you can produce the TETRA program by making the following changesin the OCTA program.•Deleting c * (underlined
138Chapter 8 Programmingwwbaww8. Deleting a ProgramThere are two different ways to delete a file name and its program.•Specific program delete•All pro
139Programming Chapter 8[2(DEL•A)2. Press 1 (YES) to delete all the programs in the list or 4 (NO) to abort theoperation without deleting anything.•Yo
140Chapter 8 ProgrammingProgram Command Menu (COM)While the program menu is on the display, press 1 (COM) to display the programcommand menu.1(COM)1 (
141Programming Chapter 8Jump Command Menu (JUMP)While the program menu is on the display, press 3 (JUMP) to display the jumpcommand menu.3(JUMP)1 (Lbl
142Chapter 8 Programming3(TABL)1 (Tabl) ... DispTable command2 (G•Con) ... DrawTG-Con command3 (G•Plt)... DrawTG-Plt commandConditional Jump
143Programming Chapter 810. Command Referencekkkkk Command IndexBreak ...
126Chapter 8 Programming1. Before ProgrammingThe programming function helps to make complex, often-repeated calculations quickand easy. Commands and c
144Chapter 8 Programming[Square Brackets] ... Square brackets are used to enclose items that are op-tional. Do not input the square brackets when
145Programming Chapter 8Description:1. Operation of the carriage return is identical to that of the multi-statement com-mand.2. Using a carriage retur
146Chapter 8 ProgrammingIf~Then~ElseFunction: The Then-statement is executed only when the If-condition is true (non-zero). The Else-statement is exec
147Programming Chapter 8For~To~NextFunction: This command repeats everything between the For-statement and theNext-statement. The starting value is as
148Chapter 8 Programming_Do: ~ LpWhile <expression>^_While <expression>: ~WhileEnd^Description:1. This command is basically identical to F
149Programming Chapter 8Description:1. This command repeats the commands contained in the loop as long as its condi-tion is true (non-zero). When the
150Chapter 8 Programming3. A subroutine can be used in multiple locations in the same main routine, or it canbe called up by any number of main routin
151Programming Chapter 8Example: For 2 → I To 10_If I = 5_Then ”STOP” : Stop_IfEnd_NextThis program counts from 2 to 10. When the count reaches 5, how
152Chapter 8 Programming3. This command can be used in combination with conditional jumps and countjumps.4. If there is no Lbl-statement whose value m
153Programming Chapter 8Description:1. The conditional jump compares the contents of two variables or the results of twoexpressions, and a decision is
127Programming Chapter 8A12342. Programming Examples Example 1To calculate the surface area and volume of three regularoctahedrons of the dimensions s
154Chapter 8 ProgrammingDescription:This command draws a statistical graph in accordance with conditions defined withinthe program.DrawGraphFunction:
155Programming Chapter 8Send (Function: This command sends data to an external device.Syntax: Send (<data>) (…ex. Send (List 1))Description:1. T
156Chapter 8 Programming11. Text DisplayYou can include text in a program by simply enclosing it between double quotationmarks. Such text appears on t
157Programming Chapter 8Executing this program produces the result shown here.kkkkk Using Table & Graph Functions in a ProgramTable & Graph fu
158Chapter 8 ProgrammingExecuting this program produces the results shown here.Numeric TableGraphwkkkkk Using List Sort Functions in a ProgramThese fu
159Programming Chapter 8The graph conditions that are required depends on the graph type. See “ChangingGraph Parameters”.• The following is a typical
160Chapter 8 ProgrammingExample ProgramClrGraph_1!Z[[[1Q1S-WindAuto_2K11{1, 2, 3} → 2 List 1_31Q{1, 2, 3} → 3 List 2_43121Q4S-Gph1 5 DrawOn,53111Q6S
161Programming Chapter 8• Regression statistical calculation1LinearReg List 1, List 2, List 3CalculationFrequency data (Frequency)type*y-axis data (YL
162Chapter 8 Programming
128Chapter 8 Programming•Pressing 4 (SYBL) displays a menu of symbols that can be input.4(SYBL)•You can delete a character while inputting a file name
129Programming Chapter 8uuuuuTo change modes in a program•Pressing 3 (MENU) while the program input screen is on the display causes amode change menu
130Chapter 8 ProgrammingSurface Area S ... c*!9d*aAxwVolume V ... !9c/d*aAMdwIf you simply input the manual calculations shown above however,
131Programming Chapter 81 (EXE) or whw(Value of A)Intermediate result produced by ^wwbaww•Pressing w while the program’s final result is on the displa
132Chapter 8 Programming3. Debugging a ProgramA problem in a program that keeps the program from running correctly is called a“bug,” and the process o
133Programming Chapter 85. Secret FunctionWhen inputting a program, you can protect it with a password that limits access tothe program contents to th
Commenti su questo manuale