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
$ javac -Xlint Expressions.java $ java -ea Expressions 𝜑: 1.618033988749895 √2: 1.4142135623730951 cos(π/4): 0.7071067811865476 log₂ 13: 3.700439718141092 ln ℯ: 1.0

Solution