Step 1 - How to Use in GUI Mode
(on the Calculator Window)
The RINPn has two mode - GUI mode and CUI mode. On the GUI mode, you can use the RINPn on a simple calculator window, so it is easy to use for everyone. Therefore, as a first step, Let's try to use GUI mode!
How to Launch the RINPn
How to launch the RINPn depends on the type of your environment.
For Microsoft® Windows®
Double-click the batch file "RINPn_?.?.?.bat" (?.?.? are version numbers) to launch the RINPn. Also, you can launch the RINPn by inputting "rinpn" command with no argumuments on the command-line terminal, if you registered "bin" folder of the RINPn in the environment variable "Path" (» More details).
For Other OS (Linux®, etc.)
Launch on the command-line terminal as follows:
java -jar RINPn.jar
Also, you can launch the RINPn by inputting only "rinpn" command with no argumuments, if you registered "bin" folder of the RINPn in the environment variable "PATH" (» More details).
When you execute the above command line, if an error occurred with the error message indicating that "java" command is not found, Java® Runtime Environment(JRE) is required separately. There are some ways to install it.
Probably, one of most adaptable way on various OSes is, to install the OpenJDK which is a development environment of Java® including the runtime environment. For details, search on the web with keywords "OpenJDK install (name of your OS)". The OpenJDK might be helpful too, when you want to call new functions (methods) written in Java® from the RINPn, because you are required to compile the code written in Java® in such case.
Also, on some Linux® distributions, you might be able to install only JRE easily, by using "apt" command. Firstly, search available packages:
and then install appropriate one, for example:
sudo apt install openjdk-?-jre (?: version numbers)
Please note that the RINPn will NOT work on JRE with the name ends with "-headless".
When you succeeded to launch the RINPn, the following calculator window will be displayed:
As the above, the calculator window of the RINPn is very simple and compact. By default, the calculator window will be displayed at the top-layer of all other windows in translucent color. The size, the color, and behaviour (whether the window should always be at the top-layer or not) of the calculator window are customizable. For customizing them, open the file "Settings.txt" by a text editor, and edit the content of the file, and overwrite it.
How to Calculate
To take calculations, input the expression into the "INPUT" text-field, and press the Enter key of your key board. Then the calculated value of the expression will be output on the "OUTPUT" text-field. For example:
( 1 + 2 ) / 3 - 4 + 5
As the above, parentheses "( )" and orders of operations (multiplication & division are prior than addition & subtraction) are considered correctly. Also, you can use functions/variables as:
sqrt ( sin( PI / 2 ) + 1 )
- About Precision and Roundings -
In internal processing of the RINPn, numerical values are handled as double-precision (64-bit) binary floating-point number. Hence, some type of numerical errors are contained in some digits at tails of calculation results. Therefore, the RINPn rounds a calculation result in 10-digits by default (customizable by "Settings.txt"), before displaying it. When you use the RINPn, please note that above things, and thereby the RINPn may be unusable for some purposes (for example, calculations requiring perfect precision).
- Introduction - Overview of the RINPn and Preparation to Use
- Step 1 - How to Use in GUI Mode (on the Calculator Window)
- Step 2 - How to Use in CUI Mode (on the Command-Line Terminal)
- Step 3 - How to Execute Scripts
- Step 4 - How to Add Functions/Variables by Scripts (Library Scripts)
- Step 5 - Implement Functions/Variables in Java® (Plug-in Development)
- Step 6 - How to Embed into Other Software
- Appendix - List of Built-in Functions/Variables