Post Reply 
newRPL: all results mode?
01-22-2016, 02:08 PM
Post: #9
RE: newRPL: all results mode?
I came up with a different approach to solve this. No flags needed.
We'd need a new object type, a solution list, or solution path, however you want to call it. For now let's use \\ and \\ as brackets for this object (any other suggestions there?).
Commands would only return a solution path object if one of the inputs is a solution path object.

So 4 √ would behave exactly as it does now.
But \\4\\ √ would give you \\ -2 2 \\

The operators, being overloadable, are easily redefined for the new object to distribute the operations throughout the solutions.

Writing constants in an expression would be tricky.

'√2*SIN(0.5)' would give you a single solution

You'd have to write explicitly:

'√\\2\\*SIN(\\0.5\\)' in order to get all possible solutions

It gives user more control:
'√2*SIN(\\0.5\\)' would give you all the SIN solutions, as the square root will only take the positive result.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
newRPL: all results mode? - Claudio L. - 01-21-2016, 12:59 PM
RE: newRPL: all results mode? - rprosperi - 01-21-2016, 02:52 PM
RE: newRPL: all results mode? - Nigel (UK) - 01-21-2016, 04:14 PM
RE: newRPL: all results mode? - Claudio L. - 01-21-2016, 06:59 PM
RE: newRPL: all results mode? - rprosperi - 01-21-2016, 07:21 PM
RE: newRPL: all results mode? - Nigel (UK) - 01-22-2016, 09:13 AM
RE: newRPL: all results mode? - emece67 - 01-22-2016, 10:44 AM
RE: newRPL: all results mode? - Claudio L. - 01-22-2016, 01:41 PM
RE: newRPL: all results mode? - Claudio L. - 01-22-2016 02:08 PM
RE: newRPL: all results mode? - Nigel (UK) - 01-24-2016, 07:08 PM
RE: newRPL: all results mode? - Claudio L. - 01-25-2016, 02:31 PM
RE: newRPL: all results mode? - Nigel (UK) - 01-26-2016, 09:37 PM



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