-------------------------------------------------------
So you say that y is a function of n ONLY, not of x. So what x value
are you going to use in that equation? Let's say it's x=4. Then you
just do
yn = x * (2*n+3)
n is an array, x is a scalar so yn will be an array where the values
of yn depend on the variable n, and the constant x, like you
specified.
If x is supposed to be a variable then y will be a function of both x
AND n so you can do that easily with 2 nested for loops, one over x
and one over n and the calculation of yxn inside. Let us know if
that's what you REALLY want to do and if you can't figure it out.