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).

Try CC41!
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

Try CC41!
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

Try CC41!
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.

Try CC41!
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.

Try CC41!
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/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
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.

Try CC41!
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.

Try CC41!
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/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
03-09-2019, 04:12 AM (This post was last modified: 01-17-2021 10:47 PM by Craig Bladow.)
Post: #35
RE: NQ41 RPN Calculator
I have been steadily working on support for running programs in NQ41 and now have it working!

edit: removed dead link.

Try CC41!
Find all posts by this user
Quote this message in a reply
12-26-2021, 08:06 PM
Post: #36
RE: NQ41 RPN Calculator
Has the CC41 effort been abandoned?

I certainly hope not, I thought it had great promise, and strongly agree a keyboard UX is much more efficient for a computer-hosted calculator app, rather than using mouse to click "fake buttons" in UI.

Thanks!
Find all posts by this user
Quote this message in a reply
12-28-2021, 01:55 AM (This post was last modified: 12-28-2021 01:56 AM by Craig Bladow.)
Post: #37
RE: NQ41 RPN Calculator
(12-26-2021 08:06 PM)jwiede Wrote:  Has the CC41 effort been abandoned?

I certainly hope not, I thought it had great promise, and strongly agree a keyboard UX is much more efficient for a computer-hosted calculator app, rather than using mouse to click "fake buttons" in UI.

Thanks!

CC41 is alive and under active development. This is the link to the HHC 2021 presentation I gave: https://youtu.be/CUvFmkcpVys

Try CC41!
Find all posts by this user
Quote this message in a reply
02-15-2022, 02:10 AM
Post: #38
RE: NQ41 RPN Calculator
(12-28-2021 01:55 AM)Craig Bladow Wrote:  CC41 is alive and under active development. This is the link to the HHC 2021 presentation I gave: https://youtu.be/CUvFmkcpVys
Glad to hear it! What's the latest version, is there a public repo yet, etc.?

Your HHC2021 presentation was actually what piqued my interest enough to ask whether it was still being developed (as the thread was getting quite stale otherwise -- hint hint Wink ).
Find all posts by this user
Quote this message in a reply
03-05-2022, 08:39 PM
Post: #39
RE: NQ41 RPN Calculator
Craig,

Can you be a bit clearer about the specific dependencies of the Linux version? If it compiles and builds (what toolchain?) for x86_64, then it ought to be useful for a wide array of other Linux platforms as well, presuming you ever choose to release source.

My personal interest stems from my building a handheld computer for myself, and though the OS is custom (using llvm-based toolchain), I'm reasonably certain the Linux version src should recompile fine for it, but would need to know the installed Linux library dependencies to know for certain.

As always, thanks for all the work on this!
Find all posts by this user
Quote this message in a reply
03-06-2022, 04:45 AM
Post: #40
RE: NQ41 RPN Calculator
CC41 builds on Linux, MacOS and Windows using each OS's native C/C++ tool chain so there are no dependencies outside of standard C/C++ libraries. Or at least that was the case until late last year when I began the transition to a decimal math library, decNumber. This is being driven by the goal of being HP-41cx math compatible and exacerbated by C's rather poor (in my opinion) math library MOD function equivalents.

Try CC41!
Find all posts by this user
Quote this message in a reply
Post Reply 




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