I have a series of data points and I am trying to find out the formula to calculate what intermediate values might be, for example if A is 5, what value would B have? This seems like it's pretty easy, but I don't know the terminology for this type of curve so searching for an answer has not been very fruitful. I am looking to use this date in a simple program, where I can give any value of (A) and get the corresponding (B) value.
1000 3.2
100 1.6
10 0.8
1 0.4
0.1 0.2
(A) (B)
Examples ...
var valueB = someFormula(valueA: 1000) // would return 3.2
var valueB = someFormula(valueA: 10) // would return 0.8
var valueB = someFormula(valueA: 0.1) // would return 0.2
var valueB = someFormula(valueA: 5) // would return ?
Much appreciated in advance.