Math Square Root

Hi I just stumbled on to these forums today, and I relatively new to unix. I am trying to figure out how to find the square root of a number using a shell script. I am using bash and I have searched and searched but cannot figure out square roots. Hopefully someone can point me in the right direction this is driving me crazy.

     code your my\_square_root.c  

just a joke :slight_smile:

or seriously man bc

I guess I should have made my post a little more clear. In my unix system administration class we have to write a script to do multiple calculations on a number. And one of the calculations is to find the square root. I asked my professor and he told me to search google for bash math functions, but that came up empty.

Please read our rules. Note:
(6) Do not post classroom or homework problems.

"he told me to search google for bash math functions, but that came up empty."
"Results 1 - 10 of about 442,000 for bash math functions. (0.21 seconds)"
And I found many results that were quite on target. But be that as it may, I will close this thread since it violates the rules.