NQ41 RPN Calculator
Post: #1
 Craig Bladow Member Posts: 100 Joined: Apr 2016
NQ41 RPN Calculator
I've been working on a command line RPN calculator program that I'm calling "NQ41" which stands for "Not Quite a 41".

This is a very early Alpha release with only 9 memories and HP-25 statistics and no alpha or programming capabilities. All functionality is subject to change in the future.

If you are familiar with HP's RPN calculators such as the HP-25 or HP-41 then learning to use this program should not be difficult.
The math functions currently use the default double precision floating point libraries provided for these operating systems.

This is a command line client for OS X 10.8 and later, Windows 7/10 and Linux x86-64bit.

Version 0.004 addresses issues with hms and hr functions and adds more functions.

sha256 of zip file for version 0.004: 3006529ec4e0501b7bd8758fa70e5c813cc62927771fae96792726f9e9ee1d9f

To confirm the sha256 checksum:
In OS X terminal: shasum -a 256 NQ41.zip
In Linux terminal: sha256sum NQ41.zip
In Windows: Install 7-zip, navigate to NQ41.zip, right click on it selecting "CRC->SHA-256" or use another utility that you trust.

After uncompressing the zip file, run 'nq41' from the folder corresponding to your computer's operating system.
Depending on your computer's security settings you may have to take extra steps to approve running this program.

This is just the first step so I invite feedback on issues that people observe.

Code:
 Last login: Thu Dec 14 23:02:59 on ttys108 Andromeda:~ craig\$ /Users/craig/Dropbox/NQ41/NQ41/osx/nq41 ; exit; Welcome to NQ41 (Not Quite a -41!) Version 0.004 Copyright © 2017 Craig Bladow. All rights reserved. This experimental software is released for the sole purpose of testing and feedback and without warranty of any kind. Input commands and numbers, separated by spaces, and press return. A space or return after a number is the same as the command 'enter'. Use 'exit' to quit and 'catalog 3' for a list of commands. > catalog 3  *, +, /, -, 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, pr, rp, hms, hr, abs, int, frac, sum+, sum-, mean, sdev, sto, rcl, fix, sci, eng, clx, clstk, clreg, prstk, trace,  exit, catalog, y^x, fact, about, mod, d%, changes, hms+, hms-, e^x-1, ln1+x, > changes Version 0.003 Initial Release Version 0.004 Added commands: mod, d%, changes, hms+, hms-, e^x-1, ln1+x fixed hr and hms. x: 0.0000 y:0.0000 z:0.0000 t:0.0000 l:0.0000 > 70 sin cos tan atan acos asin x: 70.000 y:0.0000 z:0.0000 t:0.0000 l:0.93969 > clstk x: 0.0000 y:0.0000 z:0.0000 t:0.0000 l:0.93969 > 2 8 y^x x: 256.00 y:0.0000 z:0.0000 t:0.0000 l:8.0000 > 45 fact x: 1.1962e+56 y:256.00 z:0.0000 t:0.0000 l:45.000 > 5 5 rp x: 7.0711 y:45.000 z:1.1962e+56 t:256.00 l:5.0000 > pr x: 5.0000 y:5.0000 z:1.1962e+56 t:256.00 l:7.0711 > exit

Check out NQ41!
12-02-2017, 11:15 PM
Post: #2
 pier4r Senior Member Posts: 1,164 Joined: Nov 2014
RE: NQ41 RPN Calculator
nice work! Any repository?

Wikis are great, Contribute :)
12-02-2017, 11:25 PM
Post: #3
 Craig Bladow Member Posts: 100 Joined: Apr 2016
RE: NQ41 RPN Calculator
(12-02-2017 11:15 PM)pier4r Wrote:  nice work! Any repository?

A public repository is definitely on my roadmap, I would like a more complete feature set and more mature code benefiting from user feedback before uploading to a repository.

Check out NQ41!
12-16-2017, 03:20 AM
Post: #4
 Craig Bladow Member Posts: 100 Joined: Apr 2016
RE: NQ41 RPN Calculator
Version 0.004 released, see the first post for the download link. Version 0.004 Added commands: mod, d%, changes, hms+, hms-, e^x-1, ln1+x and fixed hr and hms functions.

Check out NQ41!
12-16-2017, 07:14 AM
Post: #5
 Paul Dale Senior Member Posts: 1,264 Joined: Dec 2013
RE: NQ41 RPN Calculator
Decimal arithmetic or binary?
(if you don't know, it'll be binary

Pauli
12-16-2017, 04:05 PM
Post: #6
 Craig Bladow Member Posts: 100 Joined: Apr 2016
RE: NQ41 RPN Calculator
It's binary arithmetic 64 bit floating point also known as double precision.

I have started down the decimal path more than once, in C and in Forth, and came to realization that since my goal was not to design an arbitrary precision RPN calculator such as 'dc', for the same number of bits, binary math allows a smaller epsilon than decimal.

Check out NQ41!
12-16-2017, 04:37 PM
Post: #7
 Craig Bladow Member Posts: 100 Joined: Apr 2016
RE: NQ41 RPN Calculator
Paul,

Actually some old posts of yours regarding converting decimal hours to H.MMSS were very helpful when I first thought I could fix the following:
Code:
 > 2.05 hms x: 2.0260 y:0.0000 z:0.0000 t:0.0000 l:2.0500

Where the answer I was expecting was 2.03 but ultimately one needs a special display mode for H.MMSS to solve this problem.

Check out NQ41!
 « Next Oldest | Next Newest »

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