RINEARN
HOMEINFOSOFTTECHAICONTACT
RINEARN > English Top > RINPn > User Guide
[ Prev | Index | Next ]
Japanese English

Step 2 - Using RINPn in CUI Mode (Command-Line Terminal)

In this section, let's try another way of using RINPn: the CUI mode.

» Ask the AI for help (ChatGPT account required)
- Table of Contents -
  • How to Calculate in CUI Mode Without Any Settings
  • How to Calculate in CUI Mode With Path Settings

Sponsored Link


How to Calculate in CUI Mode Without Any Settings

To use CUI mode without additional settings, execute "RINPn.jar" by passing an expression as a command-line argument as follows:

cd (The folder of the RINPn)

java -jar RINPn.jar   "(1 + 2 ) / 3 - 4 + 5"
(Result) 2

java -jar RINPn.jar   "sqrt ( sin( PI / 2 ) + 1 )"
(Result) 1.414213562

As shown, you can perform the same calculations as in GUI mode directly from the command-line.

How to Calculate in CUI Mode With Path Settings

Entering the full command-line and setting the current directory to the RINPn folder each time can be cumbersome. To simplify this process, it is useful to add the "cmd" folder of RINPn to your OS's "PATH" (or "Path") environment variable. Once done, you can perform calculations more simply using the "rinpn" command, regardless of the current directory:

rinpn "(1 + 2 ) / 3 - 4 + 5"
(Result) 2

rinpn "sqrt ( sin( PI / 2 ) + 1 )"
(Result) 1.414213562

Modifying the PATH environment variable depends on your operating system. For detailed instructions, search online with keywords like "how to set path (+ your OS name)." Be cautious when modifying the PATH as incorrect changes can cause serious problems on your PC. If you are unfamiliar with these settings and can seek assistance, it is advisable to do so.

How to Register the Path on Microsoft® Windows® 10 and 11

After placing the RINPn folder in a fixed location on your PC, follow the steps below to register the path:

  • Press the Start button
  • Select the gear icon (Settings)
  • Search for "Edit the environment variables" and move to that screen
  • In the opened window, select "Path" from the list of "User environment variables" (create it if it doesn't exist) and press the "Edit" button
  • In the new window, press the "New" button and enter the path to the "cmd" folder in the RINPn directory. After that, close the windows by pressing "OK", and the process is complete.
Tip: You can copy the path by right-clicking the "cmd" folder while holding down the Shift key and selecting "Copy as path" from the menu.

Please note that if you move the RINPn folder to another location, you will need to update the registered path accordingly.

How to Register the Path on Linux® and Other Systems

First, place the RINPn folder in a fixed location on your PC. For example, let's assume it's placed in the following directory:

/usr/local/bin/rinpn/rinpn_?_?_?/
(The _?_?_? part represents the version numbers.)

Next, use the cd command to navigate to the "cmd" directory inside the above directory, and grant execute permission to the "rinpn" file (no extension) with the following command:

chmod +x rinpn
(If you encounter a permission error, use sudo chmod +x rinpn.)
Finally, open one of the following files in your home directory: ".bashrc" (hidden file), ".bash_profile", or ".profile" (the file that is valid depends on your OS or distribution). Then, add the following line at the end of the file:
export PATH=$PATH:/usr/local/bin/rinpn/rinpn_?_?_?/cmd/
(Replace _?_?_? with the version number.)
The above applies if your shell is bash. If you're using Ubuntu® or a system with dash as the default shell, surround the right-hand side with double quotes:
export PATH="$PATH:/usr/local/bin/rinpn/rinpn_?_?_?/cmd/"
(Replace _?_?_? with the version number.)

Note that the syntax may vary slightly depending on the shell. Please search for the details according to your environment.

That's it!

- Trademarks/Credits -
  • Oracle and Java are registered trademarks of Oracle and/or its affiliates.
  • Microsoft Windows is either a registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
  • Linux is a trademark of linus torvalds in the United States and/or other countries.
  • Other names may be either a registered trademarks or trademarks of their respective owners.


Sponsored Link



Japanese English
[ Prev | Index | Next ]
RINEARN > English Top > RINPn > User Guide
  • Introduction - Overview of RINPn and How to Get Started
  • Step 1 - Using RINPn in GUI Mode
  • Step 2 - Using RINPn in CUI Mode (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
Index of this category
RINEARN > English Top > RINPn > User Guide
[ Prev | Index | Next ]
  • Introduction - Overview of RINPn and How to Get Started
  • Step 1 - Using RINPn in GUI Mode
  • Step 2 - Using RINPn in CUI Mode (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
News

English Documentation for Our Software and VCSSL Is Now Nearly Complete
2025-06-30 - We're happy to announce that the large-scale expansion of our English documentation with the support of AI — a project that began two years ago — has now reached its initial target milestone.

VCSSL 3.4.52 Released: Enhanced Integration with External Programs and More
2025-05-25 - This update introduces enhancements to the external program integration features (e.g., for running C-language executables). Several other improvements and fixes are also included. Details inside.

Released: Latest Version of VCSSL with Fixes for Behavioral Changes on Java 24
2025-04-22 - VCSSL 3.4.50 released with a fix for a subtle behavioral change in absolute path resolution on network drives, introduced in Java 24. Details inside.

Released the Latest Versions of RINEARN Graph and VCSSL - Now Supporting Customizable Tick Positions and Labels!
2024-11-24 - Starting with this update, a new "MANUAL" tick mode is now supported, allowing users to freely specify the positions and labels of ticks on the graph. We'll explain the details and how to use it.

Released Exevalator 2.2: Now Compatible with TypeScript and Usable in Web Browsers
2024-10-22 - The open-source expression evaluation library, Exevalator, has been updated to version 2.2. It now supports TypeScript and can be used for evaluating expressions directly in web browsers. Explains the details.

Behind the Scenes of Creating an Assistant AI (Part 1: Fundamental Knowledge)
2024-10-07 - The first part of a series on how to create an Assistant AI. In this article, we introduce the essential knowledge you need to grasp before building an Assistant AI. What exactly is an LLM-based AI? What is RAG? And more.

Launching an Assistant AI to Support Software Usage!
2024-09-20 - We've launched an Assistant AI that answers questions about how to use RINEARN software and helps with certain tasks. Anyone with a ChatGPT account can use it for free. We'll explain how to use it.

Software Updates: Command Expansion in RINEARN Graph, and English Support in VCSSL
2024-02-05 - We updated our apps. This updates include "Enhancing the Command-Line Features of RINEARN Graph" and "Adding English Support to VCSSL." Dives into each of them!

» View More Articles
See Our News
on Twitter !
RINEARN Official Website | Top Page | Privacy Policy |
This website uses cookies for serving ads and analyzing traffic data. By continuing to use this website, you agree to our privacy policy.
This website is managed by RINEARN. All rights to the contents of this website are owned by RINEARN and its owner.
Copyright(C) RINEARN 2009 - 2025 All rights reserved.