I was hoping to take pairs of numbers from a list and substitute them into a function. So if my list was
list = {{1,2}, {3,4}, {5,6}}
and my function was
function = a x^b
The output I'm hoping to get is
result =1x^2 + 3x^4 + 5x^6
How would I best do this?
#1 x^#2 & @@@ {{1, 2}, {3, 4}, {5, 6}} // Total
$\endgroup$ – OkkesDulgerci Mar 6 at 0:46