I need this to loop from -n to n but this only produces one co-ordinate so far. Does anyone know any easy quick fixes so I can have values from -n to n (step 1) subbed into the y equation id input?
I'm also not sure if I'm using the expression section correctly as I've never tried NCalc before today.
Dim y As String
Dim n As Integer
n = txtX.Text
y = txtY.Text
For x As Integer = -n To n Step 1
Dim exp As Expression = New Expression(y)
exp.Parameters("n") = n
Label1.Text = exp.Evaluate
Chart1.Series("plot1").Points.AddXY(x, y)
Next