Let a be the min and b be the max of your data set. Then the line through (a,-10), (b,10) has slope 20/(b-a), so its equation is y = -10 + 20(x-a)/(b-a). So, for each number x in your data, plug it into that formula and the number y is the corresponding number between -10 and 10.
Answers & Comments
Verified answer
Let a be the min and b be the max of your data set. Then the line through (a,-10), (b,10) has slope 20/(b-a), so its equation is y = -10 + 20(x-a)/(b-a). So, for each number x in your data, plug it into that formula and the number y is the corresponding number between -10 and 10.