home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / JBCALC10.ZIP / JBCALC.DOC next >
Encoding:
Text File  |  1988-03-12  |  7.5 KB  |  175 lines

  1. ******************************************************************************
  2. * (C) JOHN A. BRISTOR ,1988
  3. * ALL RIGHTS RESERVED
  4. *
  5. * Released to the Public Domain through the Clipper Conference, THE BOSS
  6. * Computer Research Technology
  7. * 8414 Williamsburg Circle
  8. * Pensacola, FL 32514
  9. * Voice (904) 474-8846
  10. *
  11. * FIDO : 151/305
  12. *        THE BOSS (201) 568-7293  : 2400 Baud
  13. *
  14. * JBCALC.OBJ : Procedure SC517 from Screen Control Procedure Archives
  15. *              Clipper based Scientific Calculator (DEMO) Version 1.0
  16. *
  17. *
  18. *              Scientific Calculator Routine :
  19. *
  20. *                 1) Emulates Real Calculators closer than
  21. *                       any other routines that I have seen... yet!
  22. *                       Even looks more like an actual calculator.
  23. *
  24. *                 2) Allows up to 7 digits to right of the decimal point;
  25. *                       Calculator Display Scrolls to accomadate whatever
  26. *                       the length of the decimal portion. (Most routines
  27. *                       that I've seen only allow 4 decimal places and the
  28. *                       decimal point stays at a fixed location)
  29. *
  30. *                 3) Arithmetic Functions - addition(+), subtraction(-),
  31. *                       multiplication(*), division(/)
  32. *
  33. *                 4) Special Functions - (N) +/-, Negation function,
  34. *                       (X) 1/x, Inverse Function, (^) raise X to a power,
  35. *                       (%) percentages, (π) - the Constant Pi,
  36. *                       (√x) Square Root of x
  37. *
  38. *                 5) Scientific Functions - (LOG) Logarithms, (EXP)
  39. *
  40. *                 6) Memory Functions - (M) store to memory, (R) Recall
  41. *                       memory, (F2) - Clear Memory, Memory Indicator
  42. *                       on Display.
  43. *
  44. *                 7) TAB Key - Clears/Resets Calculator
  45. *
  46. *                 8) BSP - Use Backspace Key to Rubout one character at a
  47. *                       time from current display.
  48. *
  49. *                 9) DEG/RAD - change from degrees to radians and back.
  50. *
  51. *                10) HELP - Help Screen that fits inside the boundaries
  52. *                       of the calculator.
  53. *
  54. *                11) KEYPAD - displays last keystroke on Keypad
  55. *
  56. *                12) ERROR indicator on display in the event of divide by
  57. *                       zero or display limits of display.
  58. *
  59. *       ->   Functions not supported in Demo: the only reason these functions
  60. *       ->          are not included in the demo is because I would have to
  61. *       ->          upload several libraries with this 'arc' file. This gives
  62. *       ->          users ability to play with or try-out this particular
  63. *       ->          routine to decide whether they need it or not, without
  64. *       ->          having to download a large file. (If you don't need
  65. *       ->          this calculator I might have saved you some long distance
  66. *       ->          charges.)
  67. *
  68. *                13) TRIG Functions - SIN, COS, TAN, CSC, SEC, COT, ARCSINE,
  69. *                       ARCTAN, ARCCOS
  70. *
  71. *                14) User definable Stack Size - (Business Version Only)
  72. *                       Transfer from Stack, add to stack, delete from stack,
  73. *                       Mean of Stack, Mode of Stack, Summation of Stack, &
  74. *                       all these are available while full window point &
  75. *                       shoot scrolling through the stack.
  76. *
  77. *                15) Display Modes - (Programmer's Version Only)
  78. *                       Switch between Decimal, Hexadecimal, Octal, &
  79. *                       Binary Modes 'on the fly'.
  80. *
  81. *****************************************************************************
  82. *
  83. * PARAMETERS :
  84. *
  85. *            JABTOP   ---> Top Row of Calculator : Range ( 0 to 7 )
  86. *
  87. *            JABLEFT  ---> Left Column of Calculator ( 0 to 56)
  88. *
  89. *            JABSIZE  ---> Stack Size ( 1 to 999)
  90. *
  91. *            JABRESULT --> If Enter/Return is hit this will hold the
  92. *                          calculator's final display in numeric form
  93. *                          A zero (0) amount is returned as a zero (0)
  94. *
  95. *                          If Escape is hit, then the returned value
  96. *                          will be zero-point-zero (0.0)
  97. *
  98. * COMPILER - Autumn'86, Summer Version Available
  99. *
  100. * LINKAGE - Link with JBSCRL, a scrolling routine by Thomas Link (ie, SCRL.OBJ)
  101. *                     JBPRESS
  102. *
  103. * OTHER   - NUMLOCK NEEDS to be ON or forced ON through your calling routine.
  104. ******************************************************************************
  105. *
  106. *   *** NOTE *** The scrolling messages are provided by:  JBANNER  Version 2
  107. *
  108. ******************************************************************************
  109. *                   FILES THAT SHOULD BE IN JBCAL10.ARC
  110. ******************************************************************************
  111.  
  112. *                  JBCALC.DOC  : THIS FILE
  113.  
  114. *                JBCALC10.OBJ  : OBJECT FILE USED DURING LINK SESSION
  115.  
  116. *                 JBCLINK.BAT  : BATCH PROGRAM TO LINK
  117.  
  118. *                  JBDEMO.BAT  : DEMO BATCH CALLING FILE
  119.  
  120. *                  JBSCRL.OBJ  : SCROLLING ROUTINE by Thomas Link
  121.  
  122. *                 JBPRESS.OBL  : JBANNER Version 2.0
  123.  
  124. *
  125. ******************************************************************************
  126.  
  127.  DISCLAIMERS AND LIMITATIONS ON USE
  128.  
  129.  1.       THIS IS AN "ALMOST FREE" PROGRAM PROGRAM.
  130.  
  131.  2.       THIS IS NOT A "PRIVATE DOMAIN" PROGRAM.
  132.  
  133.  3.       THE AUTHOR RELINQUISHES ALL RIGHTS EXCEPT AUTHORSHIP TO THIS PROGRAM
  134.           , AND IS RELEASING THESE FILES UNDER THE "BEER-WARE" CONCEPT.
  135.           (distribution of source code is as FOR BEER MONEY only).
  136.           (Receipts will not be used to proliferate NUCLEAR WAR or
  137.           support IRAN in any way.)
  138.  
  139.          This software is a user-supported software package .
  140.  
  141.          These Programs should be distributed FREELY AS A WHOLE.
  142.  
  143.          Copies may be given away freely only as a whole package including
  144.          this JBCALC.DOC file.  They may not be edited or modified in any
  145.          way and then distributed.
  146.  
  147.         Comments and suggestions should be sent to me at the
  148.         address above. Or if you find a bug.. (Boo.. Hsss!)
  149.  
  150.         dBASE III and Clipper are trademarks of Ashton Tate and Nantucket
  151.         respectively.
  152.  
  153. *****************************************************************************
  154. *      PLEASE NOTE !!!! -  The following only effects this special demo
  155. *      ** DEMO ONLY! **    version, and not the actual calculator routines.
  156. *                          (I had to make minor adjustments to the demo
  157. *                          version to keep your telephone download costs to
  158. *                          a minimum.)
  159. *
  160. *      I had an intermitant problem with the negation function, I think
  161. *             I've fixed it, but...  it's not a 'fatal' bug if it does occur.
  162. *
  163. *      Numbers between 0 and 1, 0 and -1 should be entered in as:
  164. *
  165. *             Example:  0.999999, 0.1, 0.2034  and not as .999999, .1, .2034
  166. *
  167. *         a zero (0) must precede the decimal if you are entering this value
  168. *         immediatly after using the '=' operator. In this one instance, if the
  169. *         preceding 0 is left off, the decimal point (.) is disregarded only
  170. *         the first time it is pressed. Then it functions normally. Other
  171. *         than this one instance, the preceding '0' can be omitted, but you
  172. *         won't have to worry about anything if you make a habit of using
  173. *         a preceding '0'.
  174. ******************************************************************************
  175.