Java Scientific Calculator


Home ·
Download ·
Design and operation ·
Modes ·
Accuracy of calculations ·
Numbers and arithmetic ·
Roots, powers and logs ·
Trigonometric functions ·
Factorials and combinations ·
Logical functions ·
Memory ·
Statistical calculations ·
Variable expressions ·
Graphing functions ·
Other features and functions ·
Modifying the code ·
Testing the code ·
Known issues ·
Similar projects ·


Java Scientific Calculator is a general-purpose scientific calculator that you can use as a computer-desktop calculator or in a web application. In addition to basic arithmetic functions it provides trigonometric functions, logarithms, powers and roots, complex numbers, binary, octal, decimal and hexadecimal calculations, logic, scientific notation, memory, statistical funcions (mean, and population and sample standard deviations), permutations and combinations. It also supports editing and replay of input and copying of output to the (system) clipboard. You can resize the application to one of three sizes and use the keyboard instead of the mouse for all keys.

Java Scientific Calculator was originally designed as part of a web application to show how you can use a calculator to calculate confidence intervals. This is why it has statistical functions and behaves in a similar way to pocket scientific calculators. At the time I could find no other suitable calculator and I know of no other calculator that implements statistical functions.

The interface is created in Java 2 1.5 available from and uses a Java Swing interface. It also uses many features in Java 2 1.5 that are not available in earlier versions of Java. Consequently, you will need to make substantial modifications if you wish to compile it with earlier versions of Java or with the current version of gcj.

Supported platforms

The calculator works on any platform on which you can run Java 2 1.5. The easiest way to use it is to download the installer program for your platform and install it. The installer includes an uninstaller that should remove the program if you decide you no longer want it.

If there is no installer program for your platform, you can still download the Java jar file, a shell script and some icons and create your own installation.

Try it

You can try out the calculator at without installing it. This is a good way to test if you have a suitable Java runtime environment and will direct you to an installer for Java if you don’t.

The web also has links to doxygen documentation of the Java source code.

Last modified: Sat 10 Nov 2012 10:51 am Logo