Can you make Megan (a stick-figure model of the popular XKCD character) walk straight?
Megan's pose is defined by a 20-element "pose" vector. In this problem you are tasked with defining two pose vectors x1 and x2 such that the cyclic trajectory defined as:
x(t) = sin(2*pi*t)*x1 + cos(2*pi*t)*x2
results in Megan walking as straight and as far as possible.
The vectors x1 and x2 must contain real numbers with absolute values not higher than 2. Your code will be scored as a function of how far (and straight) Megan reaches when the cyclic trajectory above is repeated between t=0 and t=4 (four full cycles). Megan needs to walk forward a minimum of 100 units (approximately 1m) to pass this problem (see testsuite for details)
I will update the links below with some of the best solutions:
Good luck and have fun!