Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing some code for a pressure level sensor for propane tanks. The manual provides me with the following table with the caption:

"Best accuracy will be obtained using the calibration data in the table below:"

Table of values

I assume: 0.000 - 0.318 is a E-stop 0.319 - 0.590 is 10 etc.

What I'd like to find out is how can I calculate the exact Graduation from a specific voltage. For example if I get 0.45 volts, what is the exact Graduation?

I'd much appreciate being told what type of problem this is and suggestions for formulas.

(I've cast the tagging net very wide. If someone could point me in the right direction to tag that would be great)

share|cite|improve this question
The keyword you're looking for is interpolation. – davin Jul 9 '12 at 17:50
Wolframalpha can generate the formula for you. Just plug in your voltage as $x$ and it'll give you the graduation. – Antonio Vargas Jul 9 '12 at 17:57
Both comments have lead me down the right path. @davin since you answered first would you mind making an answer so I can mark it as correct? – BOMEz Jul 9 '12 at 18:15
Since the relationship is almost linear, you might try a simple linear regression, which can be done in Excel or a similar program. Actually, it looks like wolframalpha does it too. – tentaclenorm Jul 10 '12 at 22:51
up vote 1 down vote accepted

The keyword you're looking for is interpolation.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.