The value of using math.pow() is that you can square, cube, etc...
val x = Array.range(1,9)
val y = x.map(math.pow(_,2))
y: Array[Double] = Array(1.0, 4.0, 9.0, 16.0, 25.0, 36.0, 49.0, 64.0, 81.0)
If you don't need to remain in an Array, then:
(1 to 10).map(math.pow(_,2))
res4: IndexedSeq[Double] = Vector(1.0, 4.0, 9.0, 16.0, 25.0, 36.0, 49.0, 64.0, 81.0, 100.0)
If you're going to redundantly use the squaring capability, then use functional programming:
def square(x: Int) = x * x
(1 to 10).map(square)
res6: IndexedSeq[Int] = Vector(1, 4, 9, 16, 25, 36, 49, 64, 81, 100)