Calculate the golden ratio, phi: set number of decimal places to 100 (100 k), square root of 5 (5 v) plus 1 (1 +), divided by 2 (2 /), and [p]rint result

dc

  • An arbitrary precision calculator. Uses reverse polish notation (RPN).
    See also: `bc`.
    More information: <https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dc --expression='100 k 5 v 1 + 2 / p'

click the source code to copy install dc on any operating system with command-not-found.com