-4
$\begingroup$

I have a very simple problem but I feel like I am brain-dead.

I cant figure it out how to calculate this in Java:

1321 = 0  1771 = 640  1500 = ? 

Thanks.

Edit: Sorry for no context. (And english not my first language) I must basically calculate the value that number 1500 represents. If 1321 is min (=0) and 1771 is max (=640) where does 1500 fall in (between 0 and 640) ?

I hope I am more clear now :)

  • 1
    See http://math.stackexchange.com/questions/7497/what-is-wrong-in-my-proof-that-90-95-or-is-it-correct/50512#50512.2012-07-10
  • 0
    Um, what? ${}{}$2012-07-10
  • 2
    Some context would be very helpful. $1321$ is almost never $0$, and when it is, $1721$ isn't usually $640$. Are you working with modular arithmetic?2012-07-10
  • 0
    I updated my question. I hope I am more clear.2012-07-10
  • 1
    Looks like the question is about linear interpolation between data points $(1321,0)$ and $(1771,640)$, in particular about how to find $y$ such that $(1500,y)$ would be on the same line. The answer comes from the equation of the line passing through two known points. Have you seen that in school algebra?2012-07-10

2 Answers 2