Sqrt and some other java.Math fn

Here i have used some of the Math class methods used to get mathematical
results such as square root. exponential, logarithm,
Triangle pattern