I want to plot the following function
sum a*exp(-0.001*(x-b)**2)
where a and b values are listed in the 1st and 2nd columns of an input file respectively, like this
a1 b1
a2 b2
a3 b3
.....
an bn
now I am plotting it using the following command
plot a1*exp(-0.001*(x-b1)**2) + a2*exp(-0.001*(x-b2)**2) + a1*exp(-0.001*(x-b3)**2) ...etc
what I need is a short command to plot all data without writing all the data one by one.
the expected output should be one continuous line like this


