Post Reply 
newRPL: Angles revisited
04-07-2016, 01:55 PM
Post: #30
RE: newRPL: Angles revisited
(04-06-2016 01:58 PM)Claudio L. Wrote:  
(04-04-2016 11:52 AM)Claudio L. Wrote:  Since I can't find a way to make things work correctly, I think we should drop the part that doesn't work and simplify:

* Tagged angles could be used for user entry.
* Tagged angles could be used for return values of trig functions.
* Any operation (I mean any) done on a tagged angle will convert it to the current angle system and remove the tag prior to doing the operation itself.
* Commands will exist to convert between all tag formats, and to explicitly tag a number.

I know it will eliminate many of the useful features (like directly adding/subtracting angles in DMS), but at least won't introduce any weirdness.

I guess there's no harm in adding this:
* Addition/subtraction between 2 tagged angles returns a tagged angle with the same system as the left argument.
All other operations, or if angles get mixed with numbers, will convert to current angle system units and remove the tag, then operate.

I think this approach should be useful without adding too much complexity either to the code or to what the user has to learn.

This discussion made me go back and look at the code for my RPN calculator for Casio machines. There is one feature which I had forgotten: a complex number carries an angle tag (radian or degrees) which specifies the angle display mode when polar display is chosen. So a complex number can be entered as polar, displayed as rectangular, and later displayed as polar still keeping the angle tag that the polar angle was entered with. Is this idea at all useful, or is it making things too complicated - especially as newRPL has to support 3D vectors?

Nigel (UK)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
newRPL: Angles revisited - Claudio L. - 03-31-2016, 06:13 PM
RE: newRPL: Angles revisited - Han - 03-31-2016, 06:49 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 12:50 AM
RE: newRPL: Angles revisited - Helix - 04-01-2016, 05:33 PM
RE: newRPL: Angles revisited - Han - 04-01-2016, 05:48 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 06:22 PM
RE: newRPL: Angles revisited - Nigel (UK) - 04-01-2016, 06:27 PM
RE: newRPL: Angles revisited - emece67 - 04-01-2016, 07:01 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 11:15 PM
RE: newRPL: Angles revisited - emece67 - 04-01-2016, 11:46 PM
RE: newRPL: Angles revisited - Nigel (UK) - 04-03-2016, 11:05 AM
RE: newRPL: Angles revisited - Claudio L. - 04-04-2016, 12:04 AM
RE: newRPL: Angles revisited - rprosperi - 03-31-2016, 06:54 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 12:55 AM
RE: newRPL: Angles revisited - rprosperi - 04-01-2016, 02:10 AM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 03:47 PM
RE: newRPL: Angles revisited - Nigel (UK) - 03-31-2016, 08:40 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 01:12 AM
RE: newRPL: Angles revisited - Nigel (UK) - 04-01-2016, 06:20 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 06:43 PM
RE: newRPL: Angles revisited - Claudio L. - 04-01-2016, 07:11 PM
RE: newRPL: Angles revisited - SlideRule - 04-03-2016, 04:27 PM
RE: newRPL: Angles revisited - Vtile - 04-03-2016, 08:12 PM
RE: newRPL: Angles revisited - Claudio L. - 04-03-2016, 11:58 PM
RE: newRPL: Angles revisited - Claudio L. - 04-04-2016, 11:52 AM
RE: newRPL: Angles revisited - Claudio L. - 04-06-2016, 01:58 PM
RE: newRPL: Angles revisited - Nigel (UK) - 04-07-2016 01:55 PM
RE: newRPL: Angles revisited - Claudio L. - 04-07-2016, 05:51 PM
RE: newRPL: Angles revisited - Helix - 04-07-2016, 01:04 PM
RE: newRPL: Angles revisited - Claudio L. - 04-07-2016, 01:35 PM
RE: newRPL: Angles revisited - Claudio L. - 05-10-2016, 02:52 PM



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