Compute inverse

How can i compute inverse.

inverse(A,B);
I want that to write this equation

s1 = ((3*Q.x*Q.x+A)*inverse(2*Q.y,P))%P;

Note:all these elements are UInt.

Thank you.

Added by: ~Br, 2011 X 13

What kind of inverse function do you want?