If the input series is "0 + 0 Sin[2 x] + 0 Sin[3 x] + 4 Sin[4 x];"
Only get the result {4}
There is no bug. Mathematica input itself simplifies 0 Sin[2 x] + 0 Sin[3 x]
to zero before even the evaluator gets hold of the expression;
So if you type
f = 0 + 0 Sin[2 x] + 0 Sin[3 x] + 4 Sin[4 x]
and look at f
you'll see it is 4 Sin[4 x]
There is nothing you can do about this really, unless you use Hold
and friends when you actually type the expression itself.
f = Hold[0 + 0 Sin[2 x] + 0 Sin[3 x] + 4 Sin[4 x]]
But once you release the Hold
, we are back to square one. May be you can try using Strings
. But I am not sure what you are trying to do there.