corrected formula is pasted below:

c = SQUARE ROOT OF ( a^2 + b^2)

I agree with yzaykov, you can square on both sides, so as to avoid computing square root.