Re: Using the HMS functions in a user RPL program.




"John H Meyers" <jhmeyers@xxxxxxx> answered to
> On Sat, 10 Dec 2005 03:42:38 -0600, Heiko Arnemann wrote:

> > The required program need additionaly take care,
> > if the user means hours, degrees or grad.
>
> The HMS conversions and HMS arithmetic functions
> are valid only for hours.mins_seconds or degrees.mins_seconds
> (not angles in grads or radians), but there is no way
....

Yes, I did not finish my thoughts. Of course, grads and radians
are decimals and need to be handled simply as real numbers (RND).

....

> > A case strukture with the faktors 24, 360 and 400

Here I was wrong. 24 h, 360 ° and 400 grad has nothing
to do with rounding, they only become important for
periodic analysis, e.g. with the MOD-function.

> > would take care for "0", and 3600 and 60 can be applied
> > for the digit rounding for 1 to 3.

> The format "xxxx.mmssssssssss" (as used by HMS functions)
> has a hard-coded definition (that there are 60 seconds
> to each minute, and 60 minutes to each degree or hour);
....
> My microwave oven does exactly the same, by the way,
> as do most of my digital countdown timers; you can specify
> 99 minutes, or 99 hours, or 99 seconds, and they never complain;
> they just count down to zero before affecting the next
> group of digits to the left (if any),
> and thus they do exactly the right thing for me, the user,
> who is, after all, always right :)

I like this way.

Thanks for your explanations/thougts.

Best regards
Heiko



.



Relevant Pages

  • Re: Your Own Useful Skills
    ... The best part is that it works for both radians and degrees. ... grads, though I've never used those except to test my calculator... ... Sin 10^-5 in degrees = 1.75x10^-7 ... aaand now I don't remember how to convert it over to radians or grads. ...
    (rec.arts.sf.written)
  • Re: SIN(90)
    ... Number is the angle in radians for which you want the sine. ... I haven't seen 'grads' used for a while. ...
    (microsoft.public.excel)
  • Re: FBOFW (10-2)
    ... Peter Trei wrote: ... > They're called grads - 400 to a circle. ... > natural to use radians? ...
    (rec.arts.comics.strips)
  • Re: sin x / x tends to 1...
    ... > bill wrote: ... ie, radians, grads, degrees, etc. ... Prev by Date: ...
    (sci.math)