public static void Main()
Console.WriteLine("Hello World");
for (int i = 0; i < 200; i++)
double aMax = double.MinValue;
double aMin = double.MaxValue;
for (double j = 5.0; j < 10.5; j+=0.1)
double angle = Foo(j, armLength);
aMin = Math.Min(aMin, angle);
aMax = Math.Max(aMax, angle);
if (!double.IsNaN(aMin) && !double.IsNaN(aMax))
Console.WriteLine("{0:##.0}: {1} ", armLength, Math.Abs(aMin -aMax));
private static double Foo(double x, double y)
return Math.Acos((x*x + y*y - 22.2*22.2)/(2*x*y))*(180/Math.PI);