I have a function f defined as
list = {a1, a2, a3, a4, a5, a6};
expression = a1 + a2^2 + a3^2 + a4 + a5*a6;
f = Function @@ {list, expression};
The input in vector is something likes
listin = {1, 2, 3, 4, 5, 6};
but when using
f[listin]
it informs error:"Too many parameters in {a1,a2,a3,a4,a5,a6} to be filled from \Function[{a1,a2,a3,a4,a5,a6},a1+a2^2+a3^2+a4+a5\ a6][{1,2,3,4,5,6}]".
I wonder is there any way to change format of the listin to make it works.
ReplaceAtin another answer of yours, I find it very useful. – E. Chan-López Apr 07 '23 at 18:21