home *** CD-ROM | disk | FTP | other *** search
- ******************************************************************************
- * (C) JOHN A. BRISTOR ,1988
- * ALL RIGHTS RESERVED
- *
- * Released to the Public Domain through the Clipper Conference, THE BOSS
- * Computer Research Technology
- * 8414 Williamsburg Circle
- * Pensacola, FL 32514
- * Voice (904) 474-8846
- *
- * FIDO : 151/305
- * THE BOSS (201) 568-7293 : 2400 Baud
- *
- * JBCALC.OBJ : Procedure SC517 from Screen Control Procedure Archives
- * Clipper based Scientific Calculator (DEMO) Version 1.0
- *
- *
- * Scientific Calculator Routine :
- *
- * 1) Emulates Real Calculators closer than
- * any other routines that I have seen... yet!
- * Even looks more like an actual calculator.
- *
- * 2) Allows up to 7 digits to right of the decimal point;
- * Calculator Display Scrolls to accomadate whatever
- * the length of the decimal portion. (Most routines
- * that I've seen only allow 4 decimal places and the
- * decimal point stays at a fixed location)
- *
- * 3) Arithmetic Functions - addition(+), subtraction(-),
- * multiplication(*), division(/)
- *
- * 4) Special Functions - (N) +/-, Negation function,
- * (X) 1/x, Inverse Function, (^) raise X to a power,
- * (%) percentages, (π) - the Constant Pi,
- * (√x) Square Root of x
- *
- * 5) Scientific Functions - (LOG) Logarithms, (EXP)
- *
- * 6) Memory Functions - (M) store to memory, (R) Recall
- * memory, (F2) - Clear Memory, Memory Indicator
- * on Display.
- *
- * 7) TAB Key - Clears/Resets Calculator
- *
- * 8) BSP - Use Backspace Key to Rubout one character at a
- * time from current display.
- *
- * 9) DEG/RAD - change from degrees to radians and back.
- *
- * 10) HELP - Help Screen that fits inside the boundaries
- * of the calculator.
- *
- * 11) KEYPAD - displays last keystroke on Keypad
- *
- * 12) ERROR indicator on display in the event of divide by
- * zero or display limits of display.
- *
- * -> Functions not supported in Demo: the only reason these functions
- * -> are not included in the demo is because I would have to
- * -> upload several libraries with this 'arc' file. This gives
- * -> users ability to play with or try-out this particular
- * -> routine to decide whether they need it or not, without
- * -> having to download a large file. (If you don't need
- * -> this calculator I might have saved you some long distance
- * -> charges.)
- *
- * 13) TRIG Functions - SIN, COS, TAN, CSC, SEC, COT, ARCSINE,
- * ARCTAN, ARCCOS
- *
- * 14) User definable Stack Size - (Business Version Only)
- * Transfer from Stack, add to stack, delete from stack,
- * Mean of Stack, Mode of Stack, Summation of Stack, &
- * all these are available while full window point &
- * shoot scrolling through the stack.
- *
- * 15) Display Modes - (Programmer's Version Only)
- * Switch between Decimal, Hexadecimal, Octal, &
- * Binary Modes 'on the fly'.
- *
- *****************************************************************************
- *
- * PARAMETERS :
- *
- * JABTOP ---> Top Row of Calculator : Range ( 0 to 7 )
- *
- * JABLEFT ---> Left Column of Calculator ( 0 to 56)
- *
- * JABSIZE ---> Stack Size ( 1 to 999)
- *
- * JABRESULT --> If Enter/Return is hit this will hold the
- * calculator's final display in numeric form
- * A zero (0) amount is returned as a zero (0)
- *
- * If Escape is hit, then the returned value
- * will be zero-point-zero (0.0)
- *
- * COMPILER - Autumn'86, Summer Version Available
- *
- * LINKAGE - Link with JBSCRL, a scrolling routine by Thomas Link (ie, SCRL.OBJ)
- * JBPRESS
- *
- * OTHER - NUMLOCK NEEDS to be ON or forced ON through your calling routine.
- ******************************************************************************
- *
- * *** NOTE *** The scrolling messages are provided by: JBANNER Version 2
- *
- ******************************************************************************
- * FILES THAT SHOULD BE IN JBCAL10.ARC
- ******************************************************************************
-
- * JBCALC.DOC : THIS FILE
-
- * JBCALC10.OBJ : OBJECT FILE USED DURING LINK SESSION
-
- * JBCLINK.BAT : BATCH PROGRAM TO LINK
-
- * JBDEMO.BAT : DEMO BATCH CALLING FILE
-
- * JBSCRL.OBJ : SCROLLING ROUTINE by Thomas Link
-
- * JBPRESS.OBL : JBANNER Version 2.0
-
- *
- ******************************************************************************
-
- DISCLAIMERS AND LIMITATIONS ON USE
-
- 1. THIS IS AN "ALMOST FREE" PROGRAM PROGRAM.
-
- 2. THIS IS NOT A "PRIVATE DOMAIN" PROGRAM.
-
- 3. THE AUTHOR RELINQUISHES ALL RIGHTS EXCEPT AUTHORSHIP TO THIS PROGRAM
- , AND IS RELEASING THESE FILES UNDER THE "BEER-WARE" CONCEPT.
- (distribution of source code is as FOR BEER MONEY only).
- (Receipts will not be used to proliferate NUCLEAR WAR or
- support IRAN in any way.)
-
- This software is a user-supported software package .
-
- These Programs should be distributed FREELY AS A WHOLE.
-
- Copies may be given away freely only as a whole package including
- this JBCALC.DOC file. They may not be edited or modified in any
- way and then distributed.
-
- Comments and suggestions should be sent to me at the
- address above. Or if you find a bug.. (Boo.. Hsss!)
-
- dBASE III and Clipper are trademarks of Ashton Tate and Nantucket
- respectively.
-
- *****************************************************************************
- * PLEASE NOTE !!!! - The following only effects this special demo
- * ** DEMO ONLY! ** version, and not the actual calculator routines.
- * (I had to make minor adjustments to the demo
- * version to keep your telephone download costs to
- * a minimum.)
- *
- * I had an intermitant problem with the negation function, I think
- * I've fixed it, but... it's not a 'fatal' bug if it does occur.
- *
- * Numbers between 0 and 1, 0 and -1 should be entered in as:
- *
- * Example: 0.999999, 0.1, 0.2034 and not as .999999, .1, .2034
- *
- * a zero (0) must precede the decimal if you are entering this value
- * immediatly after using the '=' operator. In this one instance, if the
- * preceding 0 is left off, the decimal point (.) is disregarded only
- * the first time it is pressed. Then it functions normally. Other
- * than this one instance, the preceding '0' can be omitted, but you
- * won't have to worry about anything if you make a habit of using
- * a preceding '0'.
- ******************************************************************************