home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / education / help_view / !Help_View / Help / Num_Hlp < prev    next >
Encoding:
Text File  |  1995-11-19  |  14.8 KB  |  446 lines

  1. Contents
  2. Help for !Numbers  v 1.11
  3. by  <Richard Sharpe>=Author:Numbers>
  4.      
  5.                <Licence>
  6.                <Introduction>
  7.                <How To Use>
  8.   
  9. Click on the words in red on any of the pages for more help.
  10. !@#
  11. Introduction
  12. Here, hopefully is an interesting and useful program for stressed out
  13. mathematics teachers who like to muck about with a bit of Number Theory
  14. and want to get their students interested in the subject rather than bored
  15. mindless by the horrors of number crunching.  To anyone else it is probably
  16. the most stupid and tedious program ever devised!
  17.   
  18. If you are in any doubt as to which category you belong in,  please look
  19. at the accompanying file, "Example" and if the contents interest you or
  20. mean anything to you then you have my sympathy, otherwise take my advice
  21. and continue in bliss and ignorance.
  22.   
  23. Most of what !Numbers does can be done with a pocket calculator or even a
  24. piece of paper if you have a great deal of time. So if your life in the 
  25. classroom is stress free and joyful, !Numbers is definitely not for you.  
  26.   
  27. The program began as a simple BBCBasic set of routines written on and for
  28. an (expletive deleted!) RM Nimbus 186, (single tasking of course) in
  29. response to a Year 7 girl asking me how I really expected her to find all
  30. of the prime palindromics between 10 000 and 20 000.  I said I didn't and
  31. wrote the program.
  32.   
  33. Later it occured to me that it would be much better to write it in the
  34. Desktop so that the resulting lists could be saved as text files and
  35. printed out.
  36.   
  37. <Contents>
  38. !@#
  39. How To Use
  40.             Topics
  41. -----------------------------------
  42.    <Getting Started>
  43.    <Lists of numbers/properties>
  44.    <Random Numbers>            
  45.    <Factors>                   
  46.    <Factor Sums>               
  47.    <The Kaprekar Process>      
  48.    <Digit Reduction>           
  49.    <Sums of Diagonals>         
  50.    <Big Number Calculator>     
  51. -----------------------------------
  52. Happy number crunching!
  53.    
  54. If you have any suggestions as to how the program could be improved please
  55. let me know.
  56.   
  57. All correspondence to the <Author>=Author:Numbers>.
  58.   
  59. <Contents>
  60. !@#
  61. Getting Started
  62. Double click on the !Numbers icon in a filer window, to install it on the
  63. icon bar.      
  64.   
  65. Single click on the icon on the icon bar to open the main window.
  66.   
  67. There are a number of options to choose from here taking you to a variety
  68. of other windows which do thrilling things.
  69.   
  70. Each of the subsequent windows has at least three buttons. \<Clear>|,
  71. \<Finish>| and \<OK>|.
  72.   
  73. \<Clear>| blanks out every writable icon in the window.
  74.   
  75. \<Finish>| returns you to the main menu window.
  76.   
  77. \<OK>| sets your calculations going, as does pressing \<Return>|.
  78.   
  79. <Contents>
  80. !@#
  81. Lists of numbers/properties
  82. First choose your configuration.
  83.   
  84. This is done using the <Option> buttons on the left and the <Radio>
  85. buttons on the right of the window.
  86.   
  87. Then type in the number you want to start with in the top writable icon
  88. and the number you want to finish with in the second writable icon
  89. underneath it, pressing \<Return>| after each or by pressing \<Return>|
  90. after entering the start value and pressing the OK button after the
  91. second.  The hourglass will run for a few seconds and then a save box will
  92. be displayed.  Dragging this to a filer window will save the list as a
  93. text file,  which can then be viewed in an Editor.
  94.   
  95. <How To Use>
  96. !@#
  97. Options
  98. The Option buttons on the left of the window lets you choose the comments
  99. you want appended to the lists.
  100.   
  101. \<Primes>| will tell you which of the numbers are prime.
  102. \<P'dromes>| will tell you which are Palindromic.
  103. \<Powers>| will tell you which are squares, cubics or quartics.
  104. \<Factorials>| will tell you which are factorial numbers.
  105. \<Fac Sums>| will tell you whether the number is Perfect, Abundant or
  106. Deficient.
  107. \<Kaprekar>| will identify any Kaprekar numbers or constants.
  108. \<Triangle>| will identify any Triangle numbers in the list.
  109.   
  110. <How To Use>
  111. !@#
  112. Radio
  113. The radio buttons on the right let you choose the type of numbers that are
  114. displayed.
  115.   
  116. By default every number in your chosen interval is displayed.
  117.   
  118. If you choose \<Prime>| then only prime numbers are displayed and ditto
  119. with \<Palindromics>| or \<Triangles>|.
  120.   
  121. <How To Use>
  122. !@#
  123. Random Numbers
  124. When you click on \<Randoms Numbers>| the Main window is closed and a
  125. special random window is opened.
  126.   
  127. Into the icon marked "Lowest" type the smallest number that you want in
  128. you list.
  129.   
  130. Into the icon marked "Highest" type the largest number that you want in
  131. your list
  132.   
  133. Into the icon marked "How Many?" type in the number of random numbers in
  134. the specified range that you require.
  135.   
  136. <How To Use>
  137. !@#
  138. Factors
  139. When you choose \<Factors>| the Main window is closed and a special
  140. factors window is opened.  Type the number you wish to factorize into the
  141. writable icon at the top and press \<Return>|.  The factors will flow into
  142. the icons down the screen.  Pressing the \<Menu>| button will open a menu
  143. leading to a Save box. This will save the factors to a text file.
  144.   
  145. <How To Use>
  146. !@#
  147. Factor Sums
  148. This is a starting point for some investigative work.
  149.   
  150. If you choose \<Factor Sums>|, the Main window is closed and a special
  151. window is opened.  Type the number in the writable icon at the top and
  152. either press \<Return>| or click on \<OK>|.
  153.   
  154. !Numbers will then calculate the sum of all the factors of your number
  155. excluding the number itself and then do the whole thing all over again
  156. with the next number.  It will continue like this until it reaches a prime
  157. and goes to 1,  it reaches a Perfect number and repeats itself, or you
  158. click on <Pause>=diff> or press <Escape>=diff>.
  159.   
  160. If the number gets very big (Greater than 2147483647) everything slows
  161. down considerably as the routine starts to use Nick Craig-Wood's
  162. <Numbers> module which can deal with very large integers.
  163.   
  164. <How To Use>
  165. !@#
  166. A Peculiarity
  167. Pressing \<Pause>| may take a moment or two to respond but it does give
  168. you the option of taking up where you left off by pressing \<Restart>|.
  169. \<Escape>| stops the loop more quickly but you cannot start again.
  170.   
  171. (Well actually I lie, you can. It's just that the results are wrong if you
  172. do!  You have been warned!)
  173.   
  174. <Factor Sums>
  175. !@#
  176. The Kaprekar Process
  177. This is the starting point for some investigative work.
  178.   
  179. When you choose \<Kaprekar>| the Main window is closed and a special
  180. window is opened.  Type a number into the writable icon at the top and
  181. either press \<Return>|or click on \<OK>|.
  182.   
  183. The Kaprekar process involves taking a number, putting its digits in
  184. ascending and descending order and subtracting the smaller of the two from
  185. the larger.
  186. The process is then repeated with the resulting number. Try it out for a
  187. few numbers and see what happens. The results are quite surprising.
  188.   
  189. <How To Use>
  190. !@#
  191. Digit Reduction
  192. This is the starting point for some investigative work.
  193.   
  194. Choosing \<Digit Reduction> opens a similar window to \<Kaprekar>|. Type a
  195. number into the writable icon at the top and either press \<Return>| or
  196. click on \<OK>|.
  197.   
  198. Digit Reduction uses that number to create a multiplication table and to
  199. add up the digits of the product until there is just one digit left.
  200.   
  201. <How To Use>
  202. !@#
  203. Sums of Diagonals
  204. This is the starting point for some investigative work.
  205.   
  206. \<Diagonals>| opens yet another window and enables you to look at the sums
  207. of different diagonals on a number grid.
  208.   
  209. Try it out and see if you can figure out the principles.
  210.   
  211. <How To Use>
  212. !@#
  213. Big Number Calculator
  214. Big Numbers is really just a desktop frontend for <Nick Craig-Wood>'s
  215. NumCalc program which uses his <Numbers> module.
  216.   
  217. To use the routines type in a calculation as you would in BASIC eg. 48^34
  218. or  (235+45^12)^243
  219.   
  220. The numbers printed out get as big as you like though very big numbers
  221. take a while to work out and tie up the desktop for a minute or two.
  222.   
  223. Anything under 10 000 digits should be pretty quick though.
  224.   
  225. Subsequent calculations will appear one after the other in the display
  226. window and you have the option to save the whole of a session (assuming
  227. you have enough application memory) as a text file by choosing Save from
  228. the display window's menu.
  229.   
  230. You can finish the session by pressing \<Finish>|.  If you subsequently go
  231. back to the big number calculator you will find that all of the previous
  232. session has been wiped from memory.
  233.   
  234. <How To Use>
  235. <Big Numbers Instructions>
  236. !@#
  237. Big Numbers Instructions
  238. The following are <Nick Craig-Wood>'s instructions from the original
  239. program.
  240.   
  241. This is a infinite precision integer calculation program.
  242.   
  243. Enter your expression in normal infix notation
  244.   
  245. You may use the following operators (in priority order)
  246.   
  247.   -a (unary minus), a! (factorial)
  248.   a^b (a to the power of b)
  249.   a*b, a/b, a%b (a modulo b)
  250.   a+b, a-b
  251.     
  252. And the following functions
  253.     
  254.   rnd(a)           produces a random number from 0 to a-1
  255.   probablyprime(a) returns 0 if a is composite, or 1 if a is prime with a
  256.                    probability of >=0.75
  257.   gcd(a,b)         returns the greatest common divisor of a and b
  258.   smallfactor(a)   returns a small factor of a, or 0
  259.   sqr(a)           returns the square root of a
  260.   powmod(a,b,c)    computes (a^b) % c using a quick method
  261.   base(a)          sets the base for calculations to a 2-36
  262.     
  263. A to Z may be used as variables, and @ is the result of the last
  264. calculation done.  Case ignored.
  265. Decimal => Base 10.
  266.     
  267. Examples of valid usage
  268.     
  269.  2^64-1"
  270.  a=z*gcd(rnd(10^100),rnd(10^100))
  271.  Q=@*123/W^2 - w%b - (139+1234)*(123^2)
  272. Pressing return repeats the last calculation.
  273. * commands may be used.
  274.   
  275. <How To Use>
  276. !@#
  277. Licence
  278. This application is SHAREWARE. If you find it useful you are required to
  279. register. (Within 30 days of first using it) You may distribute the
  280. UNREGISTERED version to whoever you like as long as you leave the
  281. application intact and you make the recipient aware of the application's
  282. Shareware status.
  283.   
  284. ** REGISTRATION IS £5.00 for individuals, £10.00 for a school.**
  285.   
  286. Registration is so that I know who's using the application and hopefully
  287. get some feedback. Also I spent a lot of time on it and want to be
  288. appreciated!
  289.   
  290. The advantages of Registering and paying the far from exorbitant fee are
  291. as follows:
  292.   
  293.   1.   You will not be breaking the law.
  294.   2.   You will encourage me to write more educational software at low
  295.        cost.
  296.   3.   You will make me ecstatically happy.
  297.   4.   You will be entitled to free upgrades (for a while at least!)
  298.   5.   You will have the opportunity to tell me how to make the program
  299.        better!
  300.   6.   You will have the opportunity to suggest other projects that you
  301.        desire an author for.           
  302.   
  303. <Contents>
  304. !@#
  305. Distribution
  306. You may distribute the UNREGISTERED version of this program to anyone you
  307. like so long as you pass on the whole application including ALL of the
  308. files in the application directory.
  309.   
  310. You may not alter any of the files in any way nor may you claim to have
  311. written any of the code.
  312.   
  313. Send your money, name, address, telephone number, comment, criticisms and
  314. anything else you like to the <Author>=Author:Numbers>.
  315.   
  316. <Contents>
  317. !@#
  318. Credits
  319. The Wimp Procedure Library that I used was written by <Paul Hobbs> and is
  320. part of his excellent <!EventShell>=EventShell> package.
  321.   
  322. I appended it to the program using <!Blib>=Blib> which is likewise a very
  323. fine piece of work by <Ian Palmer>=Blib>.
  324.   
  325. It was then well and truly squashed using <!BasShrink>=John Wallace> by <John Wallace>.
  326.   
  327. The <Numbers> Module and some of the associated coding are by
  328. <Nick Craig-Wood> so any number that the program chucks out that is
  329. longer than the usual allowable number of digits is down to him.
  330.   
  331. <Contents>
  332. !@#
  333. Nick Craig-Wood
  334. Chalk barton
  335. Shere Road
  336. West Horsley
  337. Leatherhead
  338. Surrey
  339. KT24 6EW
  340.   
  341. Email: ncw@axis.demon.co.uk
  342.   
  343. <Credits>
  344. !@#
  345. Paul Hobbs
  346. Rheinpfalzstrasse 2
  347. 85049 Ingolstadt
  348. Germany
  349.   
  350. Tel:    +44 (0) 841 47457
  351. Fax:    +44 (0) 8458 6314
  352. EMail:    PaulHobbs@arcade.demon.co.uk
  353.     
  354. <Credits>
  355. !@#
  356. Author:  !EventShell
  357. This program has been written using the routines supplied with the
  358. EvntShell library which is copyright <Paul Hobbs>.
  359.   
  360. EvntShell is a starting point for developing your own applications that
  361. run under the RISC-OS wimp system. The EvntShell library contains code to
  362. handle most of the 'Events' (i.e. opening a menu, closing a window etc)
  363. that can occur, and all your application has to do is inform the library
  364. what it should do when certain events occur. For example a menu can be
  365. attached to a window or to an icon - the library will open the menu for
  366. you (in the correct position!) when the MENU button on the mouse is used.
  367.   
  368. Normally writing a wimp application is a very complex business, involving
  369. much reading of the Programmers Reference Manuals, magazine articles and
  370. examining other applications. The aim of the EvntShell library is to
  371. reduce the need for this and to enable the speedy creation of easily
  372. maintained and robust applications.
  373.   
  374. <Credits>
  375. !@#
  376. Distribution Licence (EvntShell)
  377. You have permission to use any part or the whole library in any Public
  378. Domain/ShareWare project ONCE YOUR COPY HAS BEEN REGISTERED, as long as I
  379. am fully credited (via the inclusion of this file in the program
  380. documentation). If you wish to use these routines in a program that is for
  381. sale (for however much and for whatever reasons) or released as copyright
  382. material then my express permission in writing must be obtained. I
  383. maintain copyright on all the material supplied as part of the EvntShell
  384. system (except where noted below) and reserve the right to amend these
  385. conditions in cases where I deem misuse.
  386.   
  387. The library code is supplied free of charge to everyone 'as is'. There is
  388. no guarantee that it is free from bugs and no warranty is given about its
  389. suitability for use.
  390.   
  391. Further details about EvntShell may be obtained from the <author>=Paul Hobbs>:
  392.   
  393. <Credits>
  394. !@#
  395. Heap Manager
  396. The heap manager routines used by EvntShell are copyright Risc User. and
  397. are used with permission.
  398.   
  399. <Credits>
  400. !@#
  401. John Wallace
  402. John Wallace (Architype SoftWare)
  403. Supplier of !BasShrink which costs £5.00p. !BasShrink_PD is the 
  404. Public Domain version and is available from various PD libraries.
  405.   
  406. John Wallace, Architype Software, 54 Parkes Hall Road, Woodsetton,
  407. Dudley, West Midlands, DY1 3SR ENGLAND.
  408.   
  409. <Credits>
  410. !@#
  411. Numbers
  412. Please see the accompanying textfile NumModTxt in the Docs directory
  413. inside !Numbers
  414.   
  415. <Credits>
  416. !@#
  417. !EventShell
  418. This is the most comprehensive Basic Wimp library available.
  419. It is SHAREWARE so if you do get hold of a copy and find it useful, do pay
  420. the registration fee which for what you get is very little indeed. £10.00
  421. is a lot cheaper than !WimpGen.
  422. It is written by <Paul Hobbs> and is available from most P.D. libraries or
  423. from the author. (Despite the address he is English but you can write in
  424. English or German.)
  425.   
  426. <Click here>=Author:  !EventShell> for what <Paul Hobbs> wants to say about his very
  427. excellent work.
  428.   
  429. <Credits>
  430. !@#
  431. Blib
  432. A Basic library linker by Ian Palmer available from various P.D. libraries.
  433.   
  434. <Credits>
  435. !@#
  436. Author:Numbers
  437. Richard Sharpe
  438. 5 Camberwell Terrace
  439. Leamington Spa
  440. Warwickshire
  441. CV31 1LP
  442.   
  443. Tel:  01926 422040
  444.   
  445. <Contents>
  446. !@#