background image

Summary of Contents for CC-40

Page 1: ...of TI PPG Notes This material is not copyrighted and may be reproduced for personal use In hen material is used elsewhere we ask as a matter of courtesy that TI PPC Notes be mentioned The use of the material in this compilation is entirely at the risk of the user No responsibility as to the accuracy and the consequences due to the lack of it will be borne by either the club or the editor ...

Page 2: ...computer the keyboard is smaller than the one on the typewriter It has a lot of one keystroke entries for programming such as PRINT FOR NEXT etc The Basic is enhanced by a lot of subprograms which you can reach by CALL XXXXX All information on memory mapping is given such that it is easy to do assembly language programming It has both CALL PEEK and CALL POKE commands plus a CALL DEBUG I wrote seve...

Page 3: ...E 250 230 PRINT GUESS TOO HIGH PAUSE 1 G0T0 140 240 PRINT GUESS TOO LOW PAUSE 1 G0T0 140 250 DISPLAY AT 5 ERASE ALL BYE HAVE A NICE DAY PAUSE 3 END PALINDROMIC NUMBERS IN BASIC Palmer Hanson Page 6 of this issue reports the results of some exten sive tests of the TI 59 generating palindromic numbers using digit reverser techniques Albert Smith found 23 numbers between 1 and 1900 which would not re...

Page 4: ...on scientific useage for the CC 40 For those BASIC mechanizations which do not provide a PI function and which are limited to radian arguments for the trigonometric functions the programmer often wants the value of PI for use in conversions from degrees to radians An old programmer s trick which recovers the value of PI to the accuracy of the individual machine is to use the function PI 4 ATN l I ...

Page 5: ...not those displayed The predominance of TI machines including the CC 40 at the high accuracy end of the table is as expected The CC 40 also provides the arcsin ahd arccos functions which are not available on the other home computers one more instance of attention to scientific applications TI PPC NOTES V9N4P7 FOURTEEN DIGITS OF PI FROM THE 99 4 AND CC 40 Myer Boland Finding Pi in BASIC in V8N3P26 ...

Page 6: ...s in the May June 1982 issue of PPX Exchange where I described the use of the truncation feature to implement an effective integer function when a thirteen digit integer was divided by a small integer such that the quotient still had a thirteen digit number to the left of the decimal point Now if we alter the sequence above slightly in order to view the intermediate result say to the sequence 2 3 ...

Page 7: ...05191919 CALL CHAR 3 000185031D191981 128 CALL CHAR 4 150E84048A110E0E CALL CHARTS 8018141314131313 138 CALL CHAR S 008B081B8C8S1412 148 FOR fl 10 TO 21 FOR B 0 TO S DISPLAY AT A CHR B PAUSE 1 150 NEXT B NEXT A PAUSE 5 160 FOR A 21 TO 10 STEP l FOR B 6 TO 0 STEP 1 170 DISPLAY flT R CHR e PflUSE 1 138 NEXT B NEXT A PAUSE 5 GOTO 140 TI PPC NOTES V9N1P19 What is the memory protection for the CC 40 Ca...

Page 8: ...or 59E 14 60 60 The peak error of 59E 14 occurs at 79 degrees For a graphic comparison with the TI 59 results the following plots show the TI 59 errors without compensation same as the top plot on V8N3P19 and the CC 40 errors using the same scale for both plots TI 59 Errors without any compensation Mean Error 1 6E 13 RMS Error 6 8E 13 Peak Error 17E 13 CC 40 Errors Mean Error 0 8E 13 RMS Error 1 8...

Page 9: ...anguages if supported by the particular module My Mathematics module supports English German and French For the Prime Factors program the various messages ares English PRIME FACTORS Use Printer Enter To Be Factored Exit Program German PRIMZAHLEN Drucker benutzen Zahl French FACTEURS PREMIERS Utilisation d une Imprimante Nb a Decomposer Programm verlassen Fin du Programme The responses to the quest...

Page 10: ...ult iplicity For the number mentioned the output would be 2 28 and 3 03 meaning 22 x3J Although the CC K program can factor input integers of up to twelve digits it does not provide an ability to recall the input integer correctly for more than ten digits For example factor the number 111 111 1111111 You will obtain the correct solution on the first pass and an N in response to the prompt Exit Pro...

Page 11: ...a manner such that chain calculations on the displayed result is possible The loss in accuracy for the chain calcu lations with the CC 40 caused by the reentry can be duplicated with the TI 59 by performing EE INV EE to truncate to the displayed value before proceeding with user entered chain calculations If the variable names of the solution were available the user could recall the solutions as a...

Page 12: ...30 Display the elements of the solution with appropriate annotation To illustrate use of the program use the problem on page 12 of the manual for the TI 59 Master library module 1 Press RUN and ENTER See the prompt Enter Order of Matrix 2 Press 3 and press ENTER See the prompt Enter A l l 3 Press 4 and press ENTER to insert the A 1 1 element The computer accepts the input and returns with the prom...

Page 13: ... command PRINT USING JC 2 2 to yield a fourteen digit display display of 04166666666667 or in a technique similar to that used to observe the guard digits of the TI 59 the user can use the command PRINT C 2 2 04166 100000 to yield a display of 666666667 7 If the user changes the sixth element in the argument for the MATS subroutine call from a 5 to a 4 then the program will only proceed through th...

Page 14: ... l TO N 170 A I J 0 NEXT J 180 b D o next I 190 FOR L l TO K 200 H 1 1 210 FOR 1 2 TO N 220 H I H I 1 X L NEXT I 230 FOR 1 1 TO N F0R J l TO N 240 A I J A I J H I H J NEXT J 250 B I B I H I Y L NEXT I 260 NEXT L 270 CALL MATS A C BO l l 5 l N l R 280 IF ROO THEN 300 290 PR INT Matrix is singular PAUSE GOTO 470 300 FOR 1 1 TO N 310 X A 8 STR I 1 8 320 PRINT xs a i 1 pause next I 330 INPUT Display R...

Page 15: ...N THE CC 40 V9N1P19 discussed memory protection on the CC 40 during replacement of the batteries Maurice Swinnen had reported successful changes without losing memory when the time to replace was less than a minute In late May I purchased an AC Adapter for my CC 40 from Educalc Stock No AC 9201 14 95 plus shipping and handling Just in time In mid June the battery low indicator appeared on my CC 40...

Page 16: ...n harder to invert correctly I suggest as a guinea pig the 7x7 subHHilbert with ones on the right hand side 1 2 1 3 1 4 1 3 1 4 1 5 1 4 1 5 1 6 1 5 1 6 1 7 l e 1 7 1 6 1 7 1 8 1 9 1 3 1 9 1 H 1 5 1 6 1 7 1 8 1 6 1 7 1 8 1 9 1 8 1 9 1 19 1 8 1 9 1 10 1 11 1 9 1 10 1 11 1 12 1 10 1 11 1 12 1 13 1 10 1 11 1 12 1 13 1 14 1 1 1 1 1 1 1 The exact solution of the simultaneous equations is 56 1512 12600 4...

Page 17: ...rix elements in the program If one tries to enter the values from the keyboard then the quirk described in V8N3P5 takes over and only ten digits are used The error in the resulting solution is 6 94E 3 One can obtain similar errors with ML 02 by pressing EE INV EE after calculating each reciprocal and before entering the element for use by the program fls an additional comparison of the capability ...

Page 18: ...se steps with appropriate steps to accept the appropriate matrix elements MORE SUBPROGRAMS FOR THE CC 40 STATISTICS CARTRIDGE Experiments show that the CC 40 Statistics cartridge has a subprogram for input and edit of a two dimensional array which is very similar to that in ihe Mathematics cartridge Even the call MI is the same P s ar the same as those described on VSN5P15 except that at the end o...

Page 19: ...0 with the Mathematics module installed will return Ln Gamma 70 226 19054S3 in about one second and pressing ENTER will immediately yield Gamma 70 1 711225E 98 which is equal to 69 By comparison the ML 16 program on the TI 59 takes about 16 seconds to obtain the equivalent answer but the MU 11 program in the Math Utilities module for the TI 59 will find 69 in about four seconds with the Gamma func...

Page 20: ... Ol 4 3 O Ol Ol t o 1 CD 3 3 m Ol 1 3 CD z r t o C CD 3 O O 3 1 r f Ol O 3 3 z r CD O O 3 1 1 CD CO oi CD r f 3 3 CD G r 1 c o O CD 4 m J 1 1 CD H r f CD t o 3 Ol 1 x 3 Ol Ol 3 H c r tO CD O CD CD I CD to X 3 CD O CD CD b 1 t o 3 0 O 1 f vD Ol CD I Ol CD Ol f OO Ol 3 1 Ol 1 i c 1 C to Ol Ol 1 r f O t o Ol o xt to 3 Ol 3 O 1 rt h CD c 3 3 r r Ol 1 o XI r r Ol C 1 v i 3 r f z r S S o 1 t o Ol 3 CD C...

Page 21: ...xit program Y N A KEY 330 IF A N OR A n THEN 220 ELSE END 340 DISPLAY AT 5 Exit program Y N A KEY 350 IF A N OR k n THEN 120 ELSE END 360 DISPLAY AT 4 Insert EE module please PAUSE 4 370 END EDITOR S NOTE My sentiments about the lack o f peripherals are the same as Maurice s I am using the Mathematics module and have a set of interacting programs which perform polynomial regressions compute residu...

Page 22: ...lution seems to obtain the inverse and simply multiply the inverse by the vector to get the solution Where the vector is the unity vector as in our 7x7 sub Hilbert test problem the solution may be obtained by simply adding up the rows of the inverse matrix For the 7x7 problem the C 7 l 168 168 045 045 95 seventh or bottom row of the C 7 2 4 036 033 121 075 inverse matrix is listed at the C 7 3 30 ...

Page 23: ...ic is in base 100 The mechanization explains why 40 ATN 1 gives 14 digits of pi 400 ATN l gives 12 digits of pi 4000 ATN l gives 14 digits of pi 40000 ATN 1 gives 12 digits of pi and also why 4000 ATN 1 1000 gives a 12 digit result We will see that the twelve digit results are thirteen digit results which include a trailing non displayed zero In the same manner the thirteen digit TI 59 yields an a...

Page 24: ...s a fourteen digit number we use modulo division say with the algorithm N mod M N M INT N M Both the CC 40 and the TI 99 4A return 2 as the answer The correct answer is 545 The base 100 arithmetic is not the culprit the rounding is While it is true that in this example N is congruent to 2 mod 547 this result could surely mess up program calculations Editor s Note My Radio Shack Model 100 which als...

Page 25: ...6 character per line mode Listings can be obtained in either mode The listing for the calendar program at the right was printed in the 36 character mode and enlarged for easier reading Preliminary tests indicate that the automatic printing from the Solid State Software modules will be in the compressed mode In the next issue I will demonstrate the plotting feature V9N5P8 309 Dirt QU23 C 53 303 DAT...

Page 26: ...he input value to the display Another euter prepares the program for another problem and stops with the prompt N _ in the display Sample execution times for programs with comparable capability of twelve digits or more using the same benchmark problems used previously are 100 Din XU23 YC123 EC533 110 DATA 2 3 5 7 11 2 4 2 4 8 2 8 4 2 4 8 8 2 8 4 2 8 4 6 8 120 DATA 4 2 4 2 4 8 8 4 8 2 4 8 2 6 8 4 2 ...

Page 27: ...IF RCH 0 THEN 900 820 PRINT RCH CHRSC94 SCH 830 IF RCH 1 0 THEN 900 840 PRINT TABC19 RCH 1 CHRSC94 SCH 1 850 H H 2 G0T0 810 900 PRINT PRINT T2S PRINT T1S 910 END 198 DIH XU23 TCt23 EC533 118 D T 2 3 5 7 11 2 4 2 4 8 2 8 2 4 8 6 2 8 4 2 8 4 8 8 120 QfiTfi 4 2 4 2 4 a e 4 8 2 4 8 2 8 8 4 2 4 8 2 8 4 2 4 2 18 2 19 L39 FOR I l TO 53 RE D ECI3 NEXT I 149 PRINT lodulo 219 Factor Prosra PfHJSE 2 298 INPU...

Page 28: ...5033085317 which is correct to 8 figures and which is correct to 12 figures An BASIC program which is the equivalent of the shorter TI 59 program but which accepts l x rather than x is shown at the right below Twelve iterations are used for the CC 40 since the response time is still nearly instantaneous The results are in the bottom row on page 15 The LnCl l is correct to 13 significant figures 00...

Page 29: ...0 TI 55II 9 53101 798 9 95033 09 9 99500 3 9 9995 9 9999 10 9 99 O Com 64 9 53101 797 9 95033 072 9 99500 669 9 99950 29 9 99979 339 10 00431 22 9 98978 747 3 o M W Color C 9 53101 807 9 95033 104 9 99500 024 9 99950 29 9 99979 34 9 99947 063 9 9897B 747 Alternate Prograas for Ln a where a is near 1 TI 59 9 53103 33333 4 9 95033 0B533 4 CC 40 9 53101 79804 32 9 95033 08531 681 9 99500 33308 4 9 99...

Reviews: