Graph --> Formula program

Hi all,

In Maths, we’re currently working on integrants. We do a small project on the volume of objects. Take, for example, a symmetrical chess-piece (queen) and see the outline as a graph. Spin it around the x-axis, and you can calculate its volume.

Of course, you could, with a lot of trial and error, try to find out what graphs the outline is made from. “Hey, this piece resembles x^2, this piece is straighter, maybe sqrt(x)?” etc etc. However, I think there are programs which tell you what formula belongs to a certain line.

I thought maybe blender could do that (giving the formula of a bezier curve) but I haven’t found it. Do you know of any other programs?

Thanks!