How to find the equation of a curve given the data set (x,y) in VB.net?

2.6k views Asked by At

I am new to VB.NET and I am trying to write code in vb.net to find a equation when data points are given. For example (1,5),(2,6) etc.

I need to find a equation(not necessarily always linear) from the given points.

I tried to use the help given in

How do I calculate a trendline for a graph?

but couldn't figure out how to get equation.

Any help will be highly appreciated. Thanks in advance.

1

There are 1 answers

0
Yochai Timmer On

What you're looking for is called Interpolation

Basically it's a field in numerical analysis, and it helps you create a polynomial representation of the data points.