I am trying to see if I can use GeoGebra and WeBWorK together to meet my needs. I am doing an open source business calculus book and want to WeBWorK the questions. I would like to do questions that involve modeling, starting with randomized data. I am having trouble figuring out how to get data back and forth between GeoGebra and WeBWorK.

Let me give a bare bones problem that includes the functionality I want.

In WeBWorK, create two random points A and B.

Send the two points to GeoGebra.

Have GeoGebra add the two points so C=A+B.

Send C back to WeBWorK, and have it show up in the answer when showing correct answers.

Some reasons for my construction:

I want to keep WeBWorKâ€™s ability to randomize for students, but keep a constant value on mutilple logins.

While adding two points is trivial, WeBWorK has lots of nice commands I can use for more complicated constructions. There are commands for best fitting lines, polynomials, and exponential functions, Riemann sums, and symbolic derivatives and integrals. There is also a lot of help available for finding that one more command.

This is for a course taught by teaching assistants and adjuncts. I want the instructors to be able to show the correct answer.

Can I do this in GeoGebra, or do I have to go to Sage or R for this?

************************

Further background note- One of the hidden features of GeoGebra is that it has lots of statistics functionality. I see a lot of functionality here if I can get the basic data passing to work.