|
Trouble? If you don't see the calculator above this line within a few seconds after all of the files are loaded, make sure your browser supports Java and that Java is enabled (e.g., in Explorer, make sure Tools | Internet Options | Advanced | Enable Java is checked). If you are using CoCalc from files on your computer, make sure CoCalc.class is in the same directory as CoCalc.html. If you don't have Java installed on your computer, you can download it for free from http://www.java.com. It is a reasonably big download, but a simple installation. After reading this documentation, you can shrink the window so that only the calculator is visible. CoCalc RPN Scientific CalculatorCopyright 1996-2004 CoHort Software (www.cohort.com). Version 1.05. Released 2003-03-11.Table of Contents:What is CoCalc?CoCalc is an RPN scientific calculator from CoHort Software. In addition to the standard features for scientists, CoCalc includes several features for computer programmers (Hex and Binary notation, and some integer and boolean math functions). CoCalc has greater precision and greater range than most calculators. Also, this calculator will never be lost under a pile of papers on your desk; it won't ever need new batteries; and the buttons will never break.What is CoCalc2?CoCalc2 is a version of CoCalc with text that is much larger. Otherwise, it is identical.CoCalc Is FreeYes. CoCalc is freeware. You are welcome to obtain a copy of the program and use it for free. (However, we retain the copyright and ownership of CoCalc and you are forbidden from reselling or altering CoCalc.) CoCalc was created by CoHort Software, which makes graphics and statistics software for scientists and engineers. Since CoCalc is a small program, we are just giving it away. Please contact CoHort Software if you have any questions, suggestions, or comments about CoCalc."Can I install CoCalc on my computer?" Yes, in fact, we prefer that you install it on your computer instead of using it from the cohort web site. For regular CoCalc:
For CoCalc2 (the large text version):
"Can I put CoCalc on my web page?" Yes, if you:
Disclaimer: THIS CODE IS PROVIDED "AS IS", AND COMES WITHOUT ANY WARRANTY, EXPRESSED OR IMPLIED; WITHOUT EVEN THE IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. COHORT SOFTWARE SHALL NOT BE LIABLE FOR ANY DAMAGES, WHETHER DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL ARISING FROM THE USE OF THE SOFTWARE OR FROM THE INABILITY TO USE THE SOFTWARE OR FROM A FAILURE OF THE SOFTWARE TO OPERATE IN A MANNER DESIRED BY THE USER. Return to the calculator. Other Software:CoHort Software develops graphics and statistics software for scientists and engineers. CoCalc is currently our only freeware program. Our other programs are:
web site: www.cohort.com email: info at cohort.com CoHort Software, 798 Lighthouse Ave, PMB 320, Monterey, CA 93940, USA. Our web site will always have the latest version of CoCalc. Return to the calculator. Source CodeCoCalc was written in Java. The source code is currently not available (sorry).Return to the calculator. SupportWe welcome your comments and suggestions for improvements. If you find a bug please let us know. If you can't figure out how some feature works, please read the documentation below. If you still can't figure it out, contact us. The preferred method of communication is email (especially for people outside of North America), but phone, fax, and mail are okay (see the numbers and addresses above).Upgrades: If you want to be put on an email mailing list to be notified when there is a new version of CoCalc, send email to info at cohort.com with the words "subscribe CoCalc" plus your email address on one line in the body of the message. Return to the calculator. History1.00 released 7/23/961.01 released 11/18/96 - Fixed y^x (which acted like x^y). 1.02 released 8/27/97 - Added support for keystrokes (which may not work with Java 1.1 and higher). Fixed the button-down line draw error (which may occur with Java 1.1 and higher). 1.03 released 2000-1-21 - Added CoCalc2 (a large text version). 1.04 released 2000-9-19 - small documentation changes. 1.05 released 2003-3-11 - added support for '*', and ',' keys (aliases for 'x' and '.'). We couldn't add access to the clipboard because, for security reasons, applets can't get access to the clipboard. Return to the calculator. Introduction to Using CoCalcCoCalc is a Reverse-Polish-Notation (RPN) scientific calculator. RPN calculators were popularized by Hewlett-Packard's great calculators. (If you buy a real calculator, get one from HP: they are well-designed, well-built, and reasonably priced. You can even visit the un-official HP calculator museum.)On ordinary, non-RPN calculators, you do calculations by pressing buttons in the order that you would write an equation on paper (e.g., 5 - 2 = ). On RPN calculators, you enter the numbers and and then do something to them (e.g., 5 Enter 2 - ). You will note that RPN calculators don't have an = button or parentheses buttons, but they do have an Enter button. If you aren't used to it, RPN seems odd at first. But when you get used to it and use it for non-trivial calculations, you will see that it is a wonderful system. Return to the calculator. Entering NumbersFor simple numbers, just press the appropriate buttons. For example, to enter 45.68, press: 4 5 . 6 8.To enter a number with an exponent: after entering the mantissa of the number, press eex, and then enter the exponent. For example, to enter 4.56*10^5, press 4 . 5 6 eex 5. The display will show 4.56e5, which is the program's notation the numbers with exponents. To make a number negative, type the number and then press chs (change sign). For example, to enter -4.56, press 4 . 5 6 chs. You can press chs repeatedly to add/remove the minus sign. To make an exponent negative, press chs (change sign) after you have entered the exponent. For example, to enter 4.56*10^-5, press 4 . 5 6 eex 5 chs. The display will show 4.56e-5, which is the program's notation the numbers with exponents. For many of the buttons, you can also type the similarly named keys. This works for the following keys: 0 1 2 3 4 5 6 7 8 9 a A b B c C d D e E f F ^ ! % . / x - + Enter backspace. The buttons that they correspond to should be obvious. Also supported are ',' (an alias for '.') and '*' (an alias for 'x'). Warning: note that '-' corresponds to the subtraction button ('-'); to change the sign of a number, you must use the 'chs' button. Return to the calculator. The StackThe stack consists of 4 registers (slots which hold numbers), which are named: x, y, z, and t. When you enter a number, it is constructed in the x register.When you have finished entering a number, you can do something to the number (e.g., press a button that does something to the value in the x register, like 10^x), or you can enter another number (press Enter and then start entering the next number. Many buttons are commands that use the values in the x and y registers, e.g., +. When you use these, the result is placed in x, and the values in the z and t registers are move down: y= previous z, z= previous t. The t register is not changed. There are 3 important keys for manipulating the numbers in the stack:
Automatic stack lift: After you use a command (e.g., ln or +), you can immediately enter another number; you don't need to press Enter to lift all of the values in the stack. After a command, if you press a digit, CoCalc will automatically lift the stack (as if you had pressed Enter). Return to the calculator. OperationsThe basic approach to using CoCalc is: enter numbers into the registers (for example, press 2 Enter 3) and do things to them (press +). This is clearly not the same as entering an equation, but with a little practice it will become easier. Sometimes, you will see that there are two general approaches: 1) enter the numbers in the order they occur in the equation, using operators when the proper values are in the proper registers, and 2) start with the part of the equation that is within parentheses. These techniques are illustrated below.Here are some simple equations and the buttons you need to press to do the calculation in CoCalc: Problem: square root(9)=
Problem: 8/5=
Problem: 4 + (5*6) =
Problem: 3*sin(1.5degrees)=
Problem: (16/5.6 + .5) / (pi*.8^2 + 4)
For more complicated equations or if you repeatedly use a constant,
you may want to store values in a storage register.
Return to the calculator. Degrees vs. RadiansThere are two units commonly used to measure angles: degrees and radians. A complete circle spans 360 degrees. A complete circle spans 2*pi radians. Sometimes it is easier to work in degrees; sometimes in radians. CoCalc can work with either.The Deg and Rad radio buttons let you choose which mode will be used for subsequent trigonometric operations (sin, cos, tan, asin, acos, atan, ->Rec, ->Pol). The ->Deg and ->Rad buttons let you convert an angle value in the x register from radians to degrees, or from degrees to radians, respectively. Return to the calculator. Display OptionsNumbers can be displayed in different ways. The Fix, Sci, and Eng options all display numbers in base 10, but with slightly different ways of determining how many digits will be shown and how the exponent will be shown. The Hex and Bin options display rounded values in base 16 and base 2 respectively.For all of these options, the numbers stored in the registers are not changed; the numbers are just displayed in different ways. Fix - This format always shows a fixed number of digits to the right of the decimal place. To select the Fix display mode and specify the number of digits to the right of the decimal point, press Fix and then the desired number of digits, 0 - F. For example, 98765.12345 appears as 98765.123 if you use Fix 3. The last digit is rounded. If the number is too big or too small, scientific notation will be used. Sci - Scientific notation always displays the number with one digit to the left of the decimal place, some specified number of digits to the right, and an exponent. To select the Sci display mode and specify the number of digits to the right of the decimal point, press Sci and then the desired number of digits, 0 - F. For example, 98765.12345 appears as 9.877e+004 if you use Sci 3. The last digit is rounded. Eng - Engineering notation is similar to scientific notation, except that the exponent is constrained to be a multiple of 3. To select the Eng display mode and specify the number of digits to the right of the decimal point, press Eng and then the desired number of digits, 0 - F. For example, 98765.12345 appears as 98.765e+003 if you use Sci 3. The last digit is rounded. [HP calculator purists: no, this is not exactly the way HP does it. But this way makes the decimal points line up nicely.] Hex - The Hex option displays the numbers in the registers by displaying rounded values in base 16. Hexadecimal, as base 16 is called, is widely used by computer programmers. When you are typing in numbers in this mode, you can use digits 0 - 9 and additional hex digits (A, B, C, D, E, and F) which stand for the base 10 numbers: 10, 11, 12, 13, 14, and 15, respectively. Because the calculator only works with integer hexadecimal numbers, you can't use the . or eex keys in Hex mode. Negative numbers are displayed with a '-' sign, which avoids a problem: there are two common ways to store negative numbers in Hex notation (two's complement and one's complement) and the number of digits is different for 16, 32, and 64 bit numbers. To select the Hex display mode, press Hex. Bin - The Bin option displays the numbers in the registers by displaying rounded values in base 2. Binary, as base 2 is called, is widely used by computer programmers. When you are typing in numbers in this mode, you can only use digits 0 and 1. Because the calculator only works with integer binary numbers, you can't use the . or eex keys in Bin mode. Negative numbers are displayed with a '-' sign, which avoids a problem: there are two common ways to store negative numbers in Bin notation (two's complement and one's complement) and the number of digits is different for 16, 32, and 64 bit numbers. Since binary notation is not very dense, you will get an error message if a number is too long to display. To select the Bin display mode, press Bin. Return to the calculator. Storage RegistersThere are 16 registers (slots) into which you can store, and later retrieve, numbers.To store the current x value, press store and the number of the register into which you want to store it (0 - F), e.g., store 4. To recall a stored number and put it in x (as if you typed it in), press recall and the number of the register from which you are getting it (0 - F), e.g., recall 4. You can set all of the storage registers to 0 by pressing clrReg. Registers 0 - 5 are used by the statistics procedures to hold various sums. So, before using the statistics procedures, use clrReg. Until you are done with statistics don't store anything in registers 0 - 5. Return to the calculator. StatisticsCoCalc can do calculate simple correlation and linear regression statistics. To do so:
All of the discussion above presumes you have x,y pairs. However, most of the statistics procedures (Sig+, Sig-, mean, S.D.) can be used if you just have x values. Return to the calculator. Precision and Errors
Return to the calculator. Alphabetic List of Buttons:
Return to the calculator. This is the end of the CoCalc documentation. |