I have an expression:
exp = a+b+c
and a list containing all the symbols of my expression:
syms = {a,b,c}
and I would like to replace the symbols with numerical values. I have a list containing the numerical values:
val = {1,2,3}
and I would like to perform something like this:
exp/.syms->val
to get: 1+2+3
But this doesn't work. Do you know why?
Thread
. $\endgroup$