Манефестирующий генератор (da_forever) wrote in algorithms,
Манефестирующий генератор
da_forever
algorithms

Divide a circle

Hi!
I've been member of this community for quite time, and now I need some advise.

Question is how do I devide given circle with radius R into N vertical segments with same area?
And by vertical I mean that devising lines should be parralell to the diametr line of that circle. One more thing - N is always even. Simple example is N = 2 : and we have circle divided vertically into two parts of equal area with deametr line.

I need this to speedup my litlle research on mathematical statistics with parallel GPU eval.

Any help In form of formula, or ref to the known algorithm (if it does exists) or some code on almost any programming language would be g8.

UPD
Illustration added. Case: R=1 N=6, areas of all segments are equal.
I need to know OX points marked with question marks.
Photobucket
Subscribe

  • 15 though early morning of 16 April

    I began a reading of "Artemis Fowl". RS said it reminds her of the strangely non-sexual, intense relationship between Lucky and Nrsc. I…

  • Contributing without even knowing

    Flash animations on webpages consume a surprisingly large amount of CPU time, especially if you keep many pages open at once. When you think about…

  • keystream

    Dear lazy web, Do you know if there exists any keystream algorithms where in which, given an input key, you can request from the algorithm something…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments