Question: Procedure for finding the squareroot in a expression?

How would I write a procedure that extracts what is under a squareroot sign? For example given the expression 1+2*\sqrt(x+1) the procedure should return x+1.

 

Best regards,

henriqo

Please Wait...