def power(y:Double, x:Double) = exp(y * log(x))
def cubeRoot(x:Double) = power(1.0/3.0, x)
for(i <- 1 to 20)
val x = 1.0 + 15.0 * random.nextDouble
val y = 1.0 + 15.0 * random.nextDouble
println(s"${x}^3 + ${y}^3 = ${cubeRoot(x*x*x+y*y*y)}^3")
4.891310925301951^3 + 15.569296736594316^3 = 15.728583958104018^3
13.592433806568312^3 + 2.2122130724169717^3 = 13.611938633511603^3
2.1013227112108344^3 + 4.120563514744775^3 = 4.295212598610321^3
2.6251636587349285^3 + 8.50679564468875^3 = 8.589325171872101^3
3.1642195307173377^3 + 9.547857845765686^3 = 9.662322274067522^3