Post Reply 
NQ41 RPN Calculator
09-13-2018, 09:28 AM
Post: #21
RE: NQ41 RPN Calculator
Any changes?

On my mac at work (n1) I am still not satisfied by a software calculator. Even with a computer having a proper input interface is changing the day. Real calculators with some memory are just awesome for quick number crunching, on the pc a calculator that shows a calculator interface is somewhat clumsy.

Free42 for example, it is an awesome work, but I have to use the mouse to click around. While the real thing would be much more intuitive.

Therefore I would gladly use terminal oriented calculators.
Bc doesn't have continous memory, nor any other programming language (unless I make a program for it).
NQ 41 instead is really fitting, therefore I would like to see it not abandoned.


n1: digression: I find the mac a good system, but its cost is not justified at least for someone that uses the terminal often. Really disappointed by the price/qualities. Although one can say that MacOS in itself is not more costly than windows. It is the device + design that raise the cost.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
09-13-2018, 10:15 AM
Post: #22
RE: NQ41 RPN Calculator
Anyway request.

In interactive mode, using arrowup, down, to recall previous entries (a la bash)

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
09-13-2018, 03:00 PM
Post: #23
RE: NQ41 RPN Calculator
(09-13-2018 10:15 AM)pier4r Wrote:  In interactive mode, using arrowup, down, to recall previous entries (a la bash)

That is a good feature to have and I have looked into it. At the moment the terminal input to NQ41 is very simple so the 'arrow up' is handled by the terminal/console/shell program. On Windows 7 this feature works. I will check on OS X and Linux and report back.

NQ41 is still alive, I was working on adding support for programs and supporting HP-41 at the raw code, not micro-code, level. I paused development earlier this year and shifted my efforts to learning 3D printing and developing a case for the NP-25 (See the NP-25 thread).

Check out NQ41!
Find all posts by this user
Quote this message in a reply
09-14-2018, 04:12 AM (This post was last modified: 12-31-2018 07:47 PM by Craig Bladow.)
Post: #24
RE: NQ41 RPN Calculator
Up Arrow to recall previous line entries works as follows:

MS Windows 7: just works
Linux and Mac OS X: Install a program called "rlwrap" and then run nq41 as follows:
$ rlwrap ./nq41 -i

On Debian/Ubuntu/Linux Mint install rlwrap: sudo apt install rlwrap
On Mac OS X: First install Homebrew: https://brew.sh/
Then install rlwrap: $ brew install rlwrap

Check out NQ41!
Find all posts by this user
Quote this message in a reply
09-14-2018, 05:49 AM
Post: #25
RE: NQ41 RPN Calculator
Ok I'll try

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
10-01-2018, 04:52 PM (This post was last modified: 10-01-2018 04:56 PM by pier4r.)
Post: #26
RE: NQ41 RPN Calculator
Request: small information about the commands. It is not always clear what to do. If the commands are 1:1 (or very close) compared to the hp41 (or hp42?) at least one can mention the 41 / 42 manual as reference.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
10-01-2018, 06:39 PM (This post was last modified: 10-04-2018 02:00 AM by Craig Bladow.)
Post: #27
RE: NQ41 RPN Calculator
Good question! Please let me know if you find commands that are not functioning the same as the 41c that are identified as working the same below.

The following commands function the same, or similar enough, as in the 41C manual, with the disclaimer that the number representation and math functions are not identical: *, +, /, -, chs, 1/x, rup, rdn, x<>y, lastx, %, x^2, sqrt, enter, ln, e^x, log, 10^x, deg, rad, grd, pi, sin, cos, tan, asin, acos, atan, p-r, r-p, hr, abs, int, frc, sum+, sum-, mean, sdev, sto, rcl, fix, clx, clst, clrg, y^x, fact, mod, %ch, e^x-1, ln1+x, rnd, st+, st-, st*, st/, sumreg, clsum, d-r, r-d, dec, oct, sign, x<>

Differences:
hms+,hms- and hms will display the results of some operations differently so while the 41c would show 1.03 the NQ-41 would show 1.0260.
prtsk, same command but print to stdout, or console.
cat, just cat 3 works and not the same.
sci,eng, While these have some affect on the display, they do not work like the 41C.

Unique to NQ-41:
about, trace, exit, changes

Check out NQ41!
Find all posts by this user
Quote this message in a reply
10-04-2018, 02:00 AM
Post: #28
RE: NQ41 RPN Calculator
Note I have updated my previous post after looking at the source code.

Check out NQ41!
Find all posts by this user
Quote this message in a reply
10-04-2018, 10:26 AM (This post was last modified: 10-04-2018 10:26 AM by pier4r.)
Post: #29
RE: NQ41 RPN Calculator
For this I suggest again something like newRPL.

(a) an open repository (at first few will check it)
(b) a wiki or documentation database(even in form of text files in the repository itself)

Scattering info along a thread is better than nothing but it doesn't really help in the long run.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
10-04-2018, 06:06 PM
Post: #30
RE: NQ41 RPN Calculator
(10-04-2018 10:26 AM)pier4r Wrote:  For this I suggest again something like newRPL.

(a) an open repository (at first few will check it)
(b) a wiki or documentation database(even in form of text files in the repository itself)

Scattering info along a thread is better than nothing but it doesn't really help in the long run.

I’ve reviewed the thread and copied the additional information to the first post. Please let me know if I missed something.

Check out NQ41!
Find all posts by this user
Quote this message in a reply
10-04-2018, 06:28 PM
Post: #31
RE: NQ41 RPN Calculator
very nice, thanks!

I'm used to using ctrl-d to exit an interactive utility, on Unix systems. In nq41 -i, it seems to result in a loop printing the stack?

nice tool Smile

Cambridge, UK
41CL, 12C, DM15/16, 71B, DM42, 30b (WP 34S), 17B, 28S, 48GX, 50g, 50g (newRPL), Prime G2
various Casio, Rockwell 18R :)
Find all posts by this user
Quote this message in a reply
12-31-2018, 07:25 PM
Post: #32
RE: NQ41 RPN Calculator
(10-04-2018 06:28 PM)cdmackay Wrote:  very nice, thanks!

I'm used to using ctrl-d to exit an interactive utility, on Unix systems. In nq41 -i, it seems to result in a loop printing the stack?

nice tool Smile

Thanks for the compliment, ctrl-d now works in Mac and Linux as of version 0.2.

Check out NQ41!
Find all posts by this user
Quote this message in a reply
12-31-2018, 07:38 PM (This post was last modified: 12-31-2018 09:02 PM by Craig Bladow.)
Post: #33
RE: NQ41 RPN Calculator
Version 0.2 is released today fixing the behavior in Mac and Linux when control-d is typed when in interactive mode.

The jump from version 0.1 to 0.2 is a bit large for such a small update. Version 0.2 was initially targeted to support programming and you can see from some unimplemented or partially functional programming related commands (pgrm, lbl, flag functions) that the work is in progress.

Currently there will be 65535 programming steps and 65535 in-program constants such as numbers or strings.
While the programming language uses HP-41C commands loaded from text file, support for import and export of HP-41C byte codes will have to wait for a release in the distant future.

Check out NQ41!
Find all posts by this user
Quote this message in a reply
01-01-2019, 01:46 AM
Post: #34
RE: NQ41 RPN Calculator
(12-31-2018 07:25 PM)Craig Bladow Wrote:  ctrl-d now works in Mac and Linux as of version 0.2.

thanks!

Cambridge, UK
41CL, 12C, DM15/16, 71B, DM42, 30b (WP 34S), 17B, 28S, 48GX, 50g, 50g (newRPL), Prime G2
various Casio, Rockwell 18R :)
Find all posts by this user
Quote this message in a reply
03-09-2019, 04:12 AM
Post: #35
RE: NQ41 RPN Calculator
I have been steadily working on support for running programs in NQ41 and now have it working!

Check out NQ41!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)