Total Circumference = 10

2 π r = circumference of circle

This slider allows the user to specify which portion
of the total circumference of 10 is allocated to the 
circle. The rest is allocated to the square.

A = (10, 0)
B = (0, 10)
a = Segment(A, B)
xval = 3.7333 (slider from 0 to 10, step 1.0E-4)
C: (xval, 10.0 - xval)
D: (x(C), 0.0)
E = (10, 3)
c = Circle(E, xval / (2.0 * 3.141592653589793))
F = (15, 3)
G: (15.0 - (10.0 - xval) / 8.0, 3.0 + (10.0 - xval) / 8.0)
H: (15.0 - (10.0 - xval) / 8.0, 3.0 - (10.0 - xval) / 8.0)
I: (15.0 + (10.0 - xval) / 8.0, 3.0 + (10.0 - xval) / 8.0)
J: (15.0 + (10.0 - xval) / 8.0, 3.0 - (10.0 - xval) / 8.0)
poly1, g, i, j, h = Polygon(G, I, J, H)
text5: "circle area = " + (3.141592653589793 * (xval / (2.0 * 3.141592653589793))^(2.0))
text6: "square area = " + ((10.0 - xval)^(2.0) / 16.0)
text4: "square side = " + ((10.0 - xval) / 4.0)
text7: "Total Area = " + (3.141592653589793 * (xval / (2.0 * 3.141592653589793))^(2.0) + (10.0 - xval)^(2.0) / 16.0)
text8: "2 π r = " + xval
text3: "circle radius = r = " + (xval / (2.0 * 3.141592653589793))