How about using nested outer s?
outer(1:3/10,outer((1:3)^2,sqrt(1:3),"+"),"+") , , 1 [,1] [,2] [,3] [1,] 2.1 5.1 10.1 [2,] 2.2 5.2 10.2 [3,] 2.3 5.3 10.3 , , 2 [,1] [,2] [,3] [1,] 2.514214 5.514214 10.51421 [2,] 2.614214 5.614214 10.61421 [3,] 2.714214 5.714214 10.71421 , , 3 [,1] [,2] [,3] [1,] 2.832051 5.832051 10.83205 [2,] 2.932051 5.932051 10.93205 [3,] 3.032051 6.032051 11.03205
James source share