Reverse Polish Notation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Reverse Polish Notation

Librecadni10
To all the users of this LibreCAD forum, greetings

I like Reverse Polish Notation and wonder if the calculator function in the command line has the ability to work as a RPN calculator. Based on what I've read in the manuals so far, it doesn't appear that the authors, creators of LebreCAD provided for a RPN function. If there is a way to use RPN, would someone please point that out.

Thank you and respectfully yours, Librecadni10  
Reply | Threaded
Open this post in threaded view
|

Re: Reverse Polish Notation

LordOfBikes
Administrator
Welcome Librecadni10!

LibreCAD uses muparser library to evaluate all inputs.
And muparser does not support RPN.

There is muparseSSE for RPN support, but this is not the library implemented in LibreCAD.

So, I'm afraid to say, that you have to use infix notation in LibreCAD.

Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: Reverse Polish Notation

Librecadni10
LordofBikes,

Thank you for your prompt reply. I rather expected that RPN isn't supported, it would be a nice addition, however I'd wonder how many folks would use a RPN calculator.

Thank you and respectfully yours, Librecadni10

On Wednesday, July 22, 2020, 11:52:16 AM EDT, LordOfBikes [via LibreCAD] <[hidden email]> wrote:


Welcome Librecadni10!

LibreCAD uses muparser library to evaluate all inputs.
And muparser does not support RPN.

There is muparseSSE for RPN support, but this is not the library implemented in LibreCAD.

So, I'm afraid to say, that you have to use infix notation in LibreCAD.

Armin


If you reply to this email, your message will be added to the discussion below:
https://forum.librecad.org/Reverse-Polish-Notation-tp5719269p5719277.html
To unsubscribe from Reverse Polish Notation, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Reverse Polish Notation

rolgiati
On Wed, 22 Jul 2020 17:18:34 -0700 (MST)
"Librecadni10 [via LibreCAD]" <[hidden email]> wrote:

> I'd wonder how many folks would use a RPN calculator.

Probably the same who still code in Cobol, or understand 0C7 and 0CB abends...
 
Cheers,
 
Ron.
--
                  What upsets me is not that you lied to me,
              but that from now on I can no longer believe you.
                                                   -- Nietzsche
                                   
                   -- http://www.olgiati-in-paraguay.org --
 
Reply | Threaded
Open this post in threaded view
|

Re: Reverse Polish Notation

Librecadni10
Ron,

Thank you for your reply. I'm not a person who codes at all, let lone someone who still codes in Cobol, or understand 0C7 and 0CB abends... as for 0C7 and 0CB, I guess that the C stands for Cobol but I wouldn't know without doing a web search.

Thank you and respectfully yours, Librecadni10
Reply | Threaded
Open this post in threaded view
|

Re: Reverse Polish Notation

rolgiati
On Sat, 25 Jul 2020 16:53:30 -0700 (MST)
"Librecadni10 [via LibreCAD]" <[hidden email]> wrote:

> as for
> 0C7 and 0CB, I guess that the C stands for Cobol but I wouldn't know without
> doing a web search.

Those were error messages signalling an ABnormal END to a programme compilation, on IBM mainframes.

OC7 for a data overflow, and OCB for a division by zero IIRC, was a loong time ago...
 
Cheers,
 
Ron.
--
                           Murphy was an optimist.
                                        -- O'Toole
                                   
                   -- http://www.olgiati-in-paraguay.org --