degrees radians conversion



Hi all,

I'm having a problem where the numeric error in converting between degrees and radians is causing problems.

What I would like to do, is define a set of real numbers X where the conversion from radians to degrees can be inverted exactly, so

(x * (180/pi)) * (pi/180) = x for all x in X

then whenever I get a value in radians I can map it to its closest value in X and problem solved. But I don't know how to do that.

I was thinking I could loop the rads->degs->rads process until it finds an exactly invertible value. I have no idea if this is guaranteed to converge, or if it will converge to a value anywhere near the original.

My other thought was that there might be a property where any x with less than c significant figures will be a member of X.

Thanks for any help,
Andrew
.



Relevant Pages

  • Re: degrees radians conversion
    ... I'm having a problem where the numeric error in converting between degrees and radians is causing problems. ... The maximum numeric error appears to be small ...
    (comp.soft-sys.matlab)
  • Happy 2pi Day!
    ... Converting between fractions of a revolution and radians ...
    (sci.math)
  • Re: Happy 2pi Day!
    ... Converting between fractions of a revolution and radians ...
    (sci.math)
  • Re: degrees radians conversion
    ... I'm having a problem where the numeric error in converting between degrees and radians is causing problems. ... then whenever I get a value in radians I can map it to its closest value in X and problem solved. ... Then if you get a radian number r, find the index to the value in LUT that is closest to r: ...
    (comp.soft-sys.matlab)
  • traverse spreadsheet
    ... Trying to put togeter a spreadsheet to calculate an open/closed traverse, ... especially about working with radians and converting them to a bearing ...
    (microsoft.public.excel.misc)

Loading