# Thread: Help me to get rid a square root in my program ?

1. ## Help me to get rid a square root in my program ?

i need to make my program go a bit faster.

c=sqr (x) <-- the square root that i don't like

p= ( a + b + c ) / 2

IF p * ( p - a ) * ( p - b ) * ( p - c ) > ( R * c / 2 ) ^2 then do something..

I want to compare x directly without finding the square root,

What is the above ?
its Heron's formula to find the height of the triangle.The only thing is that i only need to compare the height with the circle's radius R to find out if the circle obscures a vector.

2. solved.

-a^4 - b^4 - c^4 + 2a^2b^2 + 2a^2c^2 + 2b^2c^2 > 4*F^2*c^2

3. you mean this $-a^2 - b^4 - c^4 + 2a^2 b^2 + 2b^2 c^2 >4F^2 c^2$

how you got this??