KöMaL - Középiskolai Matematikai és Fizikai Lapok
Sign In
Sign Up


Problem I. 147. (December 2006)

I. 147. The following algorithm generates some spiral-like figures. Consider a horizontal line segment, then, in every step, the starting point of the next, nth line segment and the endpoint of the previous one is joined in such a way that these segments encompass an angle of bn, where numbers bn are members of an arithmetic progression bn-bn-1=d with constant d. In the construction each segment has the same length.

Prepare your program to display these spirals. The input consists of the number d (real number) and the common length L (positive real number) of the segments. A message should notify the user when all possible line segments have been drawn (that is, when repetition occurs). See the example.

d=24,01   L=1,5

d=177   L=10

The source code of the program (i147.pas, i147.cpp, ...) should be submitted.

(10 pont)

Deadline expired on 15 January 2007.

Sorry, the solution is available only in Hungarian. Google translation

Az alábbi file tartalmazza a feladat mintamegoldását.



16 students sent a solution.
10 points:Biró János, Czigler András, Danka Miklós András, Szoldatics András, Vincze János.
9 points:Gilián Zoltán.
8 points:4 students.
6 points:1 student.
5 points:2 students.
4 points:1 student.
2 points:2 students.

Our web pages are supported by:   Ericsson   Cognex   Emberi Erőforrás Támogatáskezelő   Emberi Erőforrások Minisztériuma   Nemzeti Tehetség Program    
MTA Energiatudományi Kutatóközpont   MTA Wigner Fizikai Kutatóközpont     Nemzeti
Kulturális Alap   ELTE   Morgan Stanley