The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
My own infix to prefix approach. What do you think?
04-29-2014, 12:47 AM (This post was last modified: 04-29-2014 12:52 AM by Matt Agajanian.)
Post: #1
My own infix to prefix approach. What do you think?
Hi all. After using the Casio fx-115es Plus, Sharp EL-W516X and TI-36 Pro, I noticed a pattern to its two-number functions like Polar & Rectangular conversion. The form I noticed was func(a,b). In addition, studying the two prefix examples in 'Everything You've Always Wanted To Know About RPN...,' I thought my ideas could be expanded.

The way I see it is if I interpret each one or two number operation as func(arg1, arg2...) or func(arg), then, after writing this form of the expression out, I replace the parenthese and commas with spaces for readability and syntax, the end result is a prefix expression.

For example: (2+3)x(4+5) becomes x(+(2,3),+(4,5)).
Thus, replacing parentheses and commas with spaces gives x + 2 3 + 4 5 as the decomposed result.

Do you think my methodology is plausible and valid?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
My own infix to prefix approach. What do you think? - Matt Agajanian - 04-29-2014 12:47 AM



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