Post Reply 
RPNplus - Good RPN-calculator for Android
05-18-2016, 06:22 AM (This post was last modified: 05-18-2016 06:32 AM by deetee.)
Post: #1
RPNplus - Good RPN-calculator for Android
Hi all!

I would like to recommend RPNplus - a HP-like scientific RPN-calculator for Android smartphones.

RPNplus was initially made for internal use in a company but then offered for free in the playstore.

So it's completely ad-free and optimized for Android smartphones in portrait mode (720 x 1280 pixels). To make handling easy RPNplus has (only) 27 big, easy-readable and vibration-supported keys and a big display.

Just give it a try - until WP34s for Android will be released ;-)

https://play.google.com/store/apps/detai...spro&hl=de

Regards
deetee


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
05-18-2016, 08:48 AM
Post: #2
RE: RPNplus - Good RPN-calculator for Android
The WP34S for android will be released once someone volunteers to (& does) port the code to same.


Pauli
Find all posts by this user
Quote this message in a reply
05-18-2016, 07:23 PM
Post: #3
RE: RPNplus - Good RPN-calculator for Android
I've been very happy with Free42. It was my HP 'trainer' for the kids. Open source simulator (no HP ROMs used). I've been very happy with it, and it looks to have been under active development for 12 years.

(Admins: is external linking OK?)

MyCalcs: Physical: {hp48gx, hp50g, hp35s} Emu: {hp42s(Free42), hp41c(v41)}
Blog: https://brianddk.github.io/
Find all posts by this user
Quote this message in a reply
05-28-2016, 11:24 AM
Post: #4
RE: RPNplus - Good RPN-calculator for Android
Hi all!

Free42 is really great - I like the high precision and the possibility to use skins.

But the main advantage of RPNplus is that it is convenient (due to less keys and a big display) for people that are "farsighted due to old age" - like me.

I recognized that RPNplus found 8 new friends (from this forum?) last week, which lowers our "programming effort per user" - what makes us happy :-)

Regards
deetee
Find all posts by this user
Quote this message in a reply
05-28-2016, 06:54 PM
Post: #5
RE: RPNplus - Good RPN-calculator for Android
(05-28-2016 11:24 AM)deetee Wrote:  I recognized that RPNplus found 8 new friends (from this forum?) last week, which lowers our "programming effort per user" - what makes us happy :-)

Sounds like you are (one of) the developer(s)?

Very nice calc. app, auto-orientation, and quite easy to read.

It seems to have quite a few digits of precision:

[FSE] (pick SCI), [shift] [TAB] 12 (to display 12 decimal digits in Scientific notation)

2 [Enter] 3 [divide] 0.66666666666 -
=> 6.66666666667 E-012

How many digits are actually available, and is this level of precision implemented for all math functions?

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
06-07-2016, 09:17 AM
Post: #6
RE: RPNplus - Good RPN-calculator for Android
Hello Bob,

thanks for your nice comment.

I was a developer of RPNplus. It fits our requirements perfectly - so our project was closed - RPNplus is actually not under development.

The calculating precision was given by the Android Development Kit (real number - which was used for all math functions). As our primary goal was a big display (which supports 10 digits only) the calculating precision was more than sufficient (especially if you use the traditional FIX4 format).

Regards
deetee
Find all posts by this user
Quote this message in a reply
06-23-2016, 04:51 AM
Post: #7
RE: RPNplus - Good RPN-calculator for Android
Hi Deetee,

I don't understand - after a quick look - how does the stack operate compared to real HP one. It seems to have three levels or the x "display" register is not taken into account. I didn't investigate much more but could you explain the difference ?

BR
Find all posts by this user
Quote this message in a reply
06-30-2016, 09:15 AM
Post: #8
RE: RPNplus - Good RPN-calculator for Android
Hi parse!

"Good eye" - the stack of RPNplus works really slightly different to HP-calculators ... but (let's say) that's not less efficient.

On RPNplus (and ie HP48gx) pressing ENTER pushes the stack and copies the entry to the x register (inserted value is in register x only).

On many HP-calculators (I own 15c, 35s, WP34s) ENTER copies the entry to the x register and pushes the stack (inserted value is in register x and y).


In detail RPNplus is based on an old console program (attached, written in C). Maybe this helps to answer your question.

In principal it reads a character
Quote:while((n=getchar())!=ESC) // quit
and adds it to a string (including dealing with decimal point, prefix, exponent, etc.).
Quote: if(strlen(s)<STRLEN) {strcat(s," "); s[strlen(s)-1]=n;

If ENTER is pressed and (a valid string is existent) the stack is pushed and the string is written to register x (atof-function). If no valid string ist existent only the stack is pushed (x remains).
Quote: {if(strlen(s)>0) {u=z; z=y; y=x; x=atof(s);}
if((strlen(s)==0)&&(n==ENTER)) {u=z; z=y; y=x;}

Due to a calculating operation (ie. +) the operation is executed and the stack is pulled.
Quote: case '+': x=x+y; y=z; z=u; break;

Regards
deetee


################
Quote:/*
C is a simple and tiny scientific RPN-Calculator.

Compile C with: gcc -Wall -s -O3 c.c -lm
*/

#include <stdlib.h>
#include <math.h>

#define PI 3.141592653589793238462643 // pi
#define ESC 0x1b // escape key
#define SPACE 0x20 // space
#define ENTER 0xa // enter
#define BKSPC 0x7f // backspace
#define STRLEN 128 // max stringlen

void help() // print help screen
{printf("Q sqr/sqrt E ee R rot>/< T tan/arc I invert P pi/pwr L ln/exp\n");
printf("A annu S sin/arc D deg/rad F fix/sci G gamma! H help K log/10^x\n");
printf("X swap C cos/arc V sinh/ar B cosh/ar N tanh/ar M rcl/sto\n");
printf("ESC exit BKSPC clx # clr SPC chs\n");
}

void disp(char s[STRLEN]) // write string
{printf("\r%s"," ");
printf("\r%s",s);
}

void draw(long double x,long double y,long double z,long double u,int f) // display stack
{if(f<100)
{printf("\n: %4.*Lf\n",f,u); printf(": %4.*Lf\n",f,z);
printf(": %4.*Lf\n",f,y); printf(": %4.*Lf\n\n",f,x);
}
else
{printf("\n: %LE\n",u); printf(": %LE\n",z);
printf(": %LE\n",y); printf(": %LE\n\n",x);
}
}

void main() /* MAIN */
{int i,ise,ipos,fmt=2;
char n;
char s[STRLEN]="";
long double x=0,y=0,z=0,u=0,tmp=0,sto=0,rad=PI/180;

system("stty -icanon -echo");
help(); draw(x,y,z,u,fmt);

while((n=getchar())!=ESC) // quit
{if((n>='0')&&(n<='9')||(n==',')||(n=='.')||(n=='E')||(n=='e'))
{if(n==',') n='.';
if(strlen(s)<STRLEN) {strcat(s," "); s[strlen(s)-1]=n;}
disp(s);
}
else if((strlen(s)>0)&&(n==BKSPC)) {s[strlen(s)-1]='\0'; disp(s);}
else if((strlen(s)>0)&&(n==SPACE))
{ise=0; ipos=1;
for(i=1;i<=strlen(s);i++) if((s[i]=='e')||(s[i]=='E')) {ise=1; ipos=i;}
if(ise)
{if(s[ipos+1]=='-') for(i=ipos+1;i<strlen(s);i++) s[i]=s[i+1];
else {for(i=strlen(s);i>ipos;i--) s[i+1]=s[i]; s[ipos+1]='-';}
disp(s);
}
}
else
{if(strlen(s)>0) {u=z; z=y; y=x; x=atof(s);}
if((strlen(s)==0)&&(n==ENTER)) {u=z; z=y; y=x;}
else if(n==BKSPC) {x=y; y=z; z=u;}
else if(n=='#') x=y=z=u=0;

else switch(n)
{case 'h': case 'H': help(); break;
case 'x': case 'X': tmp=x; x=y; y=tmp; break;
case 'r': tmp=x; x=y; y=z; z=u; u=tmp; break;
case 'R': tmp=u; u=z; z=y; y=x; x=tmp; break;
case 'F': fmt=100; break;
case 'd': rad=PI/180; break;
case 'D': rad=1; break;
case 'f': fmt=x; x=y; y=z; z=u; break;
case 'M': sto=x; break;
case 'm': u=z; z=y; y=x; x=sto; break;

case '+': x=x+y; y=z; z=u; break;
case '-': x=y-x; y=z; z=u; break;
case '*': x=x*y; y=z; z=u; break;
case '/': x=y/x; y=z; z=u; break;

case 'i': case 'I': x=1/x; break;
case ' ': x=-x; break;
case 'q': x=x*x; break;
case 'Q': x=sqrt(x); break;
case 'P': x=exp(x*log(y)); y=z; z=u; break;

case 'p': u=z; z=y; y=x; x=PI; break;
case 'l': x=log(x); break;
case 'L': x=exp(x); break;
case 's': x=sin(x*rad); break;
case 'S': x=atan(x/(sqrt(1-x*x)))/rad; break;
case 'c': x=cos(x*rad); break;
case 'C': x=(PI/2-atan(x/(sqrt(1-x*x))))/rad; break;
case 't': x=sin(x*rad)/cos(x*rad); break;
case 'T': x=atan(x)/rad; break;
case 'k': x=log(x)/log(10); break;
case 'K': x=exp(x*log(10)); break;
case 'v': x=(exp(x)-exp(-x))/2; break;
case 'V': x=log(x+sqrt(x*x+1)); break;
case 'b': x=(exp(x)+exp(-x))/2; break;
case 'B': x=log(x+sqrt(x*x-1)); break;
case 'n': x=(exp(x)-exp(-x))/(exp(x)+exp(-x)); break;
case 'N': x=log(sqrt((1+x)/(1-x))); break;
case 'g': for(tmp=i=1;i<=x;i++) tmp=tmp*i; x=tmp; break;
case 'a': x=(1-1/exp(x*log(1+y)))/y; y=z; z=u; break;
}
draw(x,y,z,u,fmt);
s[0]='\0';
}
}
system("stty icanon echo");
}
Find all posts by this user
Quote this message in a reply
06-30-2016, 09:37 AM
Post: #9
RE: RPNplus - Good RPN-calculator for Android
Hi parse!

As I have seen now - you asked this question on google-play too (but a little more exactly).

The answer would be that the rotate-key (Rdown) doesn't write the input string to the register.

That means that
Quote:4 ENTER 3 ENTER 2 ENTER 1 Rdown
rotates the stack only (but doesn't insert the string, which is lost).

If you want to enter all 4 values and rotate you have to press
Quote:4 ENTER 3 ENTER 2 ENTER 1 ENTER Rdown

Regards
deetee
Find all posts by this user
Quote this message in a reply
06-30-2016, 05:23 PM
Post: #10
RE: RPNplus - Good RPN-calculator for Android
Hi Deetee,

Thanks a lot. It is pretty clear, now, as is the app with large keys on a Samsung Note 4 for my old long-sighted / short-sighted eyes... !

Best regards
Find all posts by this user
Quote this message in a reply
07-05-2016, 01:55 AM
Post: #11
RE: RPNplus - Good RPN-calculator for Android
(05-18-2016 06:22 AM)deetee Wrote:  Hi all!

I would like to recommend RPNplus - a HP-like scientific RPN-calculator for Android smartphones.

RPNplus was initially made for internal use in a company but then offered for free in the playstore.

So it's completely ad-free and optimized for Android smartphones in portrait mode (720 x 1280 pixels). To make handling easy RPNplus has (only) 27 big, easy-readable and vibration-supported keys and a big display.

Just give it a try - until WP34s for Android will be released ;-)

https://play.google.com/store/apps/detai...spro&hl=de

Regards
deetee

This is a very nice app! I am love with the big keys and big display.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-05-2016, 09:07 PM
Post: #12
RE: RPNplus - Good RPN-calculator for Android
Hi detee,

I too like your calculator as a nice tool just for number crunching. There is however a minor annoyance. The app crashes when I try to set "MINoff". Galaxy S4, Android 5.01. That's not a big deal, I just want to let you know.

Günter
Find all posts by this user
Quote this message in a reply
07-12-2016, 12:59 PM
Post: #13
RE: RPNplus - Good RPN-calculator for Android
Hi Guenter!

It seems that my first answer disappeared for some reasons - why I try it again:

MINoff needs (beside VIBRATEtime) access to Android and does it with:
Quote:android.provider.Settings.System.putInt(getContentResolver(),Settings.System.SCR​EEN_OFF_TIMEOUT, offTime*60000);

Therefore you have to push the value in minutes (1...10) to the X-Register and press "g MINoff".

Unfortunately your S4 or Android refuses this action.

A workaround could be to set the screen-off-time with the android settings directly.

Sorry for this inconvenience.
Regards
deetee
Find all posts by this user
Quote this message in a reply
Post Reply 




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