Post Reply 
[newRPL] About algebraic rules
05-22-2019, 10:56 AM (This post was last modified: 05-22-2019 10:57 AM by JoJo1973.)
Post: #1
[newRPL] About algebraic rules
Claudio,

experimenting with the algebraic wild cards I discovered that the rule 'SIN(.NX):→.NX' transforms SIN(2*X) into 2*X.

Is it a bug, or is it just me not having understood how .N works?

I am under the impression that .N matches the largest expression that evaluates into a numerical constant therefore my rule shouldn't match anything since '2*X' contains an identifier.
Find all posts by this user
Quote this message in a reply
05-23-2019, 02:29 AM
Post: #2
RE: [newRPL] About algebraic rules
(05-22-2019 10:56 AM)JoJo1973 Wrote:  Claudio,

experimenting with the algebraic wild cards I discovered that the rule 'SIN(.NX):→.NX' transforms SIN(2*X) into 2*X.

Is it a bug, or is it just me not having understood how .N works?

I am under the impression that .N matches the largest expression that evaluates into a numerical constant therefore my rule shouldn't match anything since '2*X' contains an identifier.

It shouldn't match, you should add it as a bug in the bug tracker. I'm almost done with the USB stuff, I think next month I'll start working on bug fixes.
Find all posts by this user
Quote this message in a reply
05-23-2019, 07:17 AM
Post: #3
RE: [newRPL] About algebraic rules
Ok, will do!
Find all posts by this user
Quote this message in a reply
Post Reply 




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