Re: computing rational values of cos(x)



In article <1150840884.107486.135170@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Randy Yates" <yates@xxxxxxxx> wrote:

Gene Ward Smith wrote:
Randy Yates wrote:
I'm disappointed that no one seems willing or able to contribute
to this problem. Is the problem too "applied" for you folks?

You've gotten a lot of replies for a question you haven't defined very
clearly. I'd say you were doing well.

At the end of my post I asked for feedback,

"Does this help?"

That post took some time to write and provided
many details that weren't previously posted.

It seems rather narrow to simply respond
with "you haven't defined things very
clearly."

So I've gone back & looked at all the posts in this thread
and I'm sorry but I still don't see what you're asking for
that you haven't already been given.

You want x such that cos x is rational, say, cos x = p / q.

The answer is to take x = arc cos p / q.

That doesn't seem to be the answer you want, but it's not clear
to me what's wrong with this answer, or what shape an improved
answer might take.

If you're looking for "nice" values of x that make cos x rational,
there are none (other than x = 0). There's a theorem that says
that if cos x is rational then x is transcendental (again,
excepting x = 0).

That's measuring x in radians. You get a little more joy out of
measuring x in degrees, as of course cos 60 and cos 90 are rational,
but that's pretty much as far as it goes - the angle whose cosine
is 1 / 4 (say) is a fairly unpleasant number, whether you measure it
in degrees or in radians.

--
Gerry Myerson (gerry@xxxxxxxxxxxxxxx) (i -> u for email)
.



Relevant Pages

  • Re: Fitness experts
    ... >> cos that's pretty fucking fast. ... I use uk.map24.com where there's a distance measuring function you can ...
    (uk.rec.motorcycles)
  • Re: Dealing with Degrees and Radians
    ... for converting values between radians and degrees. ... The real problem, of course, is that ... to make cos give you the exact value for output. ... epsilon so that something as close to 0 as 0.00000000000000006123233... ...
    (comp.lang.java.help)
  • Re: need help (how to solve equations with 3 unknown)
    ... alpha1 from the following equations. ... cos() work in radians, not in degrees. ... instead of sin() and cos. ...
    (comp.soft-sys.matlab)
  • Re: IIR oscillator or cos(Wn)
    ... i am using pentium machine for DSP software implementation. ... in cos(2*pi*(Fc/Fs)n) Fc is signal frequency, ... first time. ... Then the phase will advance 2*pi radians after n periods, ...
    (comp.dsp)
  • Re: Central Intelligence Agency ?
    ... He's great, cos every time you ... > offer to buy him a drink, he replies: "It's alright, I've got one ...
    (alt.sysadmin.recovery)