speedcrunch / SpeedCrunch

A fast, high-precision and powerful cross-platform desktop calculator.
http://speedcrunch.org
265 stars 38 forks source link

RPN Mode #80

Open heldercorreia opened 8 years ago

heldercorreia commented 8 years ago

Originally reported on Google Code with ID 18

I know it's somewhat exotic - but i'm a fan of a rpn (reverse polish
notation) style user interface. Speed Crunch would (just from a GUI point
of view) suit this very well. 
Would it be thinkable to implement a RPN mode?

Reported by klemens.dickbauer on 2006-12-08 20:38:59

heldercorreia commented 8 years ago
Should be marked as enhancement.

Reported by klemens.dickbauer on 2006-12-08 21:26:50

heldercorreia commented 8 years ago
RPN would be great. Even without going to full RPN, some postfix notation would be
welcome. In Mathematica for example, where both infix and postfix notations can be
used,
sin(pi/3)
can be alternatively typed pi/3 // sin
The // symbol is used to signify a postfix application of the function. 
This will be useful specially when the "ans" variable has to be fed to a function.
One could then type "ans // f" or even simply "// f". 

Reported by B.Houchmandzadeh on 2007-02-23 09:59:28

heldercorreia commented 8 years ago
There is indeed plan to support RPN. I mark this as Enhancement.

Reported by ariya.hidayat on 2007-04-16 09:19:09

heldercorreia commented 8 years ago

Reported by helder.pereira.correia on 2007-06-12 09:51:27

heldercorreia commented 8 years ago

Reported by helder.pereira.correia on 2007-12-16 21:45:51

heldercorreia commented 8 years ago
Calls to functions that take arbitraryly many parameters (like average) are difficult
to encode in RPN. Suggestions?

Reported by wolf.lammen on 2007-12-21 09:36:28

heldercorreia commented 8 years ago
Just use the stack. It's not a problem unless there is a limited stack size.

For example:

123
123
123
123
123
5
avg

The last stack entry is the number of values, and you then pass that number of
preceding stack entries to the function.

Most (actually all) calculators I know use statistical functions for this type of
stuff and that's generally totally separate from the normal notation used. It's
usually a table of values in memory that various calculations can be carried out
against. (Variance, standard deviation, mode, median, mean, correlation coefficients
etc).

I'd suggest the same approach.

Reported by MartinSGill on 2008-01-02 12:40:43

heldercorreia commented 8 years ago
Or you could use braces. Like
3 (12 4 + 8 2 3 * +) avg *
3 * avg ((12 + 4), (8 + (2 * 3)))
- mila

Reported by xchmelmilos on 2008-11-19 14:55:24

heldercorreia commented 8 years ago
Yes, please do it... :-)

Reported by sferrazzi on 2009-01-28 10:17:55

heldercorreia commented 8 years ago
As a long time HP 48GX user it would be superb to have such feature on Speedcrunch.
Any update regarding this matter?

Reported by aramon on 2010-05-24 08:12:28

heldercorreia commented 8 years ago
I look forward to see that implemented. I can't find any decent RPN calculator for windows.

Reported by brice.lenoir on 2011-05-23 12:53:13

heldercorreia commented 8 years ago
Brice - while we wait for speedcrunch - I have come to love xcalc (I have assigned a
hotkey - using AutoHotkey - to quickly toggle the minimal version of xcalc, works very
well)

Reported by fraxinus@oxel.net on 2011-05-24 12:12:40

heldercorreia commented 8 years ago
Thanks for that! I used www.ecalc.com as well.

Reported by brice.lenoir on 2011-05-24 12:18:56

heldercorreia commented 8 years ago
yet another hp user here. for the time being, using "galculator" on linux and free42
on windows. hoping speedcrunch will catch up and do rpn one day

Reported by ari.reads on 2011-10-21 03:58:16

heldercorreia commented 8 years ago
I'm also using RPN calculator and would like to see it as an option here too.
As mentioned in comment #7, the statistical functions are no problem in RPN.
You could even make it simpler .. clear stack - input numbers - avg - enter.
Only one limitation; the first entered value must not be zero!

Please, implement RPN! Pretty please...

Reported by tim.torma on 2014-07-03 19:50:14

heldercorreia commented 8 years ago
I use REALCALC on my android phone as an excellent RPN calculator. I too would like
to see RPN implemented in speedcrunch.

Reported by theron.jensen on 2014-11-07 15:12:45

bluespider42 commented 7 years ago

I would also love to see an RPN input mode for SpeedCrunch

PixelTwins commented 2 years ago

I take it this didn't happen then?