Why is it that when put semicolon after your code, it doesn't subsequently execute the Dynamic@Plot[f[t], {t, -10, 10}]
command? What is special about the semicolon?
Another problem seems to be that when I use the function:
Dynamic@(If[NumberQ[n], f[t_]: = Sum[A[[3 i - 2]] PDF[NormalDistribution[A[[3 i - 1]], A[[3 i]]], t], {i, n}]])
the machine is getting close to freezing, while this version:
Dynamic@(If[NumberQ[n], f = Sum[A[[3 i - 2]] PDF[NormalDistribution[A[[3 i - 1]], A[[3 i]]], t], {i, n}]])
doesn't do that.
Thanks.