newRPL: Angles revisited

04032016, 11:05 AM
Post: #21




RE: newRPL: Angles revisited
(04012016 11:15 PM)Claudio L. Wrote: This could be a problem. For example an expression: Suppose we allow powers  positive and negative  of these angle tags. Then: 45D * 45D / 45D is 45D whichever way we associate, and 50G * 2 / 90D is always going to be 1. A rule saying that when adding an angle to a number, the number has an implicit tag corresponding to the current angular mode but that there are no implicit tags for multiplication or division would make me happy, but I expect that you would prefer the tag for addition to come from the first argument. There should be a function that at any point removes a tag, including its powers, leaving a number that depends on the current angular mode. This function will be called if an operation is performed that makes no sense for angles. Does this work? If so, does it introduce new problems that I haven't yet considered? Nigel (UK) 

« Next Oldest  Next Newest »

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