Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9894
    davide.a
    Participant

    Not fun to use real number in bash.
    You have to use bc to use things like cubic root.
    To take the square root of x:
    x=$(bc -l <<< “scale=15; e(l($x)/3)”)

    #9895
    davide.a
    Participant

    *cubic root

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Scroll to Top