I'm having a problem concerning function addition. The following code shows an example that illustrates my problem. I had this list of functions that have the same variable. I had them by using the Total function and declared a function of that variable equal to the Total[list], like in this example:
f1[x_] := 2 x + 1; f2[x_] := x; f3[x_] = 4 x; l1 = List[f1[x], f2[x], f3[x]]; o[x_] := Total[l1]; o
The output of
1+7x, instead of
8, which is what I want. Any suggestion on how to approach this problem?