Question #7000   Submitted by Answiki on 10/22/2022 at 06:46:41 PM UTC

How to calculate a square root with bash?

Answer   Submitted by Answiki on 10/22/2022 at 06:47:20 PM UTC

The following command calculate the square root of a given number in command line:

bc -l <<<"(sqrt(15))"
3.87298334620741688517




2 events in history
Answer by Answiki on 10/22/2022 at 06:47:20 PM

The following command calculate the square root of a given number in command line:

bc -l <<<"(sqrt(15))"
3.87298334620741688517




Question by Answiki 10/22/2022 at 06:46:41 PM
How to calculate a square root with bash?
# ID Query URL Count

Icons proudly provided by Friconix.