newRPL - build 1255 released! [updated to 1299]
|
01-26-2019, 06:09 PM
Post: #370
|
|||
|
|||
RE: newRPL - build 1089 released! [update:build 1158]
(01-26-2019 05:23 PM)Claudio L. Wrote: You are correct but you are missing the case with more factors. If we accept commutative multiplication it will shuffle all factors until it matches, so X*Y*X^2 will also match and become Y*X^3 which is incorrect for matrices. I just need to add the other non-commutative cases Sigh. Curses, foiled again! Claudio Wrote:Is there a simple way to check if a complex is odd or even? If it won't perform I can't add it. For real numbers I just get the last digit and test one bit, that's fast enough so it doesn't bog the system (the idea is that some commands will be running hundreds of rules, so this needs to be fast). I don't know if it's fast enough for your purposes, but you could XOR the parities of the real and imaginary parts. Upon further reflection, though, I'm not sure it's worth implementing... I'm having trouble thinking of rules or conditions that would use Gaussian parity. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)