0
$\begingroup$

I want to design a function that satisfies the following:

generally speaking, $f(x) = y$

$f(5.51) = 1$ $f(95.31) = 200$

How can I go about designing the function to satisfy these requirements?

  • 0
    @nbubis: If "brainfart" offends you, then you need to be less easily offended.2012-08-20

1 Answers 1

2

If you want a function of the form $f(x)=a e^{bx}$ then simply solve for $a$ and $b$ using your data points.

If you want a polynomial function of degree $n$ then you'll need $n+1$ data points. With two data points, you get a polynomial of degree 1 (at most).

  • 0
    Thanks, Ed. I ended up using exponential interpolation using my boundary points because I wanted them to be exact. The ones in the middle only had to be close.2012-08-20