This general purpose scientific calculator uses an algebraic entry method. Numbers, operators, and functions are entered in the same order as in an algebraic expression. For example,
24 + 16 - 32 = 8
is entered as:
24 [+] 16 [-] 32 [=], result 8
A sum of products can be entered without any special keys. The expression:
2×4 + 3×6 - 3×2 = 20
is entered as:
2 [×] 4 [+] 3 [×] 6 [-] 3 [×] 2 [=], result 20
Sums of other operators and functions can be performed similarly.
The calculator uses four registers. The X register is hold the last data entered and is used to display calculation results. The Y register holds the previous data entry. Binary operators, such as multiplication, division, power, etc., operate on the data in these two registers. The Z register holds a summation for sum of products calculations. The M register is a separate memory register for holding intermediate results as desired.
Return to Contents
The Java Script source code for this program can be viewed by using the View|Source command of your web browser.
You may use or modify this source code in any way you find useful, provided that you agree that the author has no warranty, obligations or liability. You must determine the suitablility of this source code for your use.
Return to Contents
Data Entry Keys
[0] through [9] enter digits from left to right into the X register.
[.] enters a decimal point.
[π] enters the value of π, 3.14159 . . .
[EE] instructs the calculator to change the magnitude of the value in the X by a power of 10.
[±] changes the sign of the value in X.
[CE] clears the last entry and restores the calculation to the previous state.
[X:Y] exchanges the contents of the X and Y registers.
[←] deletes the last digit in the input window.
[C] clears all pending operations and resets all registers except the memory register M.
Arithmetic Keys
[+] adds previous entry to the next entry.
[-] subtracts previous entry from the next entry.
[×] multiplies previous entry by the next entry.
[÷] divides previous entry by the next entry.
[=] completes the calculation of all previously entered data and operations.
Single Operand Keys
These keys operate on the contents of the X register and put the result of the operation back into the X register.
The trigonometric functions operate on degrees or radians depending on the deg/rad radio button selection. The trigonometric function can be further modified by pressing one or both of [arc] or [hyp] or both in any order before pressing a [trig] button.
[arc] [trig] changes the function to its inverse.[sin] computes the sine, inverse sine, hyperbolic sine, or inverse hyperbolic sine.
[hyp] [trig] changes the function to the hyperbolic version.
[arc] [hyp] [trig] changes the function to the inverse hyperbolic version.
[sin] computes the cosine, inverse cosine, hyperbolic cosine, or inverse hyperbolic cosine.
[sin] computes the tangent, inverse tangent, hyperbolic tangent, or inverse hyperbolic tangent.
[√X] computes the square root of a non-negative number.
[X2] computes the square.
[X-1] computes the inverse of a non-zero number.
[X!] computes the factorial of a non-negative integer.
[log X] computes the base 10 logarithm of a non-negative number > 0.
[lg2X] computes the base 2 logarithm of a non-negative number > 0.
[2x] computes the base 2 raised to a power.
[ln X] computes the natural logarithm of a non-negative number > 0.
[ex] computes the base of the natural logarithms raised to a power.
Double Operand Keys
Just like arithmetic keys, these keys operate on the contents of the X and Y registers, then clear the Y register and put the result of the operation into the X register. For example, to compute 43 do the following operations:
[4] [Yx] [3] [=], result: 64
[Yx] computes the base Y raised to the power x.
[x√Y] computes the xth root of Y which must be a non-negative number.
Memory Keys
[STO] stores the contents of X into the M register.
[RCL] moves the contents of M into the X register.
[MC] zeroes the contents of the M register.
[M+] adds the contents of X to the value in the M register.
[M-] subtracts the contents of X from the value in the M register.
Return to Contents
AbCd Classics - free on-line books