Pure Programmer
Blue Matrix


Cluster Map

Project: Expressions

Write a program that computes and prints the values for [[Golden Ratio]], [[√2]], [[cos]] [[π]]/4, [[log]]₂ 13 and [[Natural_logarithm|ln]] [[E_(mathematical_constant)|𝑒]]

Output
$ g++ -std=c++17 Expressions.cpp -o Expressions -lfmt $ ./Expressions 𝜑: 1.61803 √2: 1.41421 cos(π/4): 0.707107 log₂ 13: 3.70044 ln ℯ: 1

Solution