Hi, everyone. I'm currently working on a little fun program. Basically it just does some computing with input values, that's not the point anyway. My problem is that I can't write the function that I need.

I need a function like this:

Function exp(x,y:real):real;

And it would return the value of x^y. Note that y is real, not an integer so a simple for loop will not do it, if I want to calculate 5.678^4.350. Basically it would be 5.678^(4350/1000)=5.678^(87/20) So that means (5.678^87) under the root with an exponent of 20. But I have no idea how would I calculate that. I've searched some forums but haven't been able to find a working solution yet.

Oh... FYI I have Free Pascal. Thanks, in advance!