I have a function $g(x,y)= -2x+5y$ and vector $ a=\{0,2,6,8,18,20,24,26\} $.
I want to plot a $ g(1,a) $ but i don't know how to plot it?
I use following commands:
g[x_,y_]:=-2 x+5 y;
Plot[g[1,y],{y,a}]
But i does not get a plot.
Please help. Thank you for help in advance.


