Robot drawing with two servos. Calculating x,y to angles?

So we're in the early stages of building this robot-drawer thing. We have a MAX patch that's doing some face-tracking and we are getting a single pair of X,Y coords out of it. We want to convert this to usable data for a servo-drawing apparatus. The challenge is that we need to get this into circular motion somehow. Here are some pictures attached.

The paper shows two arms, the bottom and middle circles are servos. We need to angle the "shoulder" servo, then angle the "elbow" servo.

We got this from a robotics website but can't make much sense of it:

    //Use inverse kinematics to find the angles of the motors like the following equations: 
    float l1 = 80.4; // the length of the shoulder 
    float l2 = 88; // the length of the elbow

    double cb2 = 2*l1*l2;

    float c2 = (sq(x) + sq(y) - sq(l1) - sq(l2)) / cb2; 
    float s2 = sqrt(1-sq(c2)); 
    float k1 = (l1 + l2 * c2); 
    float k2 = (l2 * s2); 
    float base_ang = rtod((atan2(y,x) - atan2(k2,k1))); 
    float elbow_ang = rtod(atan2(s2,c2)) + 90;

	// x servo, y sero
    myservo1.write(base_ang); myservo2.write(elbow_ang);

Our design is kind of similar to this: http://www.blogcdn.com/www.engadget.com/media/2012/03/doodle-clock.jpg in that it has a shoulder and elbow motor.

Does that actually draw ?

Check out this video of a programmable mechanical boy, made in the 1770's who can still write a letter: Chonday.com - Chihuahua Dog With a Beautiful Soul

Yes , it's famous. I've seen documentaries about this but my point is that I don't think THAT was made with modern day RC servos so drawing a comparison between the two is a bit of a stretch. Did you see the mechanics of that thing ? It's way more force than almost any RC servo. That thing is beefy.

Servo drawing arms that operate on a flat surface. If you search youtube you may find more.

That's pretty cool !

Haye all- thanks for the replies. Our duct tape arm (in the photos on the top) does draw but, no, it doesn't draw upright like that. We've designed it to move flat like the other examples. Any help with the math would be much appreciated!

physcom:
Any help with the math would be much appreciated!

(Wow...) I guess the movies amply demonstrate that the maths needed to do that are quite horrifying, and the reason why no commercial plotter ever worked like that is because it's a really bad idea. Nonetheless, there is a faint chance that HP/GL might be able to provide the basis for what you want to do.