Post Reply 
newRPL - build 1255 released! [updated to 1299]
01-04-2019, 02:37 PM
Post: #347
RE: newRPL - build 1089 released! [update:build 1127]
(12-20-2018 10:17 PM)The Shadow Wrote:  What sort of rule do I need to convince '2*X*Y-Y*X' to become 'X*Y'?

I thought this would do it (when followed with AUTOSIMPLIFY):

'.XN*.xX+.XM*.xX:→(.XN+.XM)*.xX'

since it's commutative. It doesn't work, however.

However, that rule *does* turn '2*X*Y+Y*X' to '(X+2*X)*Y'. Why won't it work on the subtraction?

New rules engine (3rd rewrite) is up and running on my system, I'll test some more before releasing in the wild and also add the variable attributes support we discussed above. Your example rule already produces the correct result '(2*Y-Y)*X' which AUOSIMPLIFY quickly turns into Y*X. The new engine uses much more RAM but does proper backtracking. The previous generation tried to cut corners to save RAM but cases like the one above were failing to test all possible permutations.
AUTOSIMPLIFY already has 8 independent groups of rules, controlled by 8 independent flags to disable/enable the simplifications.
We still have to come up with what the groups mean but the first one is custom user rules (in a variable 'AUTOSIMPLIFY.RULES'), the second group is basic cleanup rules, 3rd group is division/negative powers simplification (this can remove poles from an expression), and the rest are yet to be defined (blank for now, we'll fill them up with community input over the years).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
RE: newRPL - build 1089 released! [update:build 1127] - Claudio L. - 01-04-2019 02:37 PM
How to participate? - erazor - 12-13-2019, 07:12 AM



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