Rescaling Data Set: Solve Math Question for Physics Lab

  • Thread starter fishingspree2
  • Start date
  • Tags
    Data Set
In summary, The conversation discusses a math question related to a physics lab. It involves assigning a difference between two numbers, A and B, to a number S in an interval [-100,100]. The conversation also mentions a linear equation and the limitations of the values for A and B. Finally, an alternative solution is proposed using an arctan function.
  • #1
fishingspree2
139
0
Hello, this is not really a math homework but I have a math question for a physics lab.

Let's say I have two numbers A and B which are both more or equal to 0.

Then, A-B is always in the interval [-B,A].
I want to assign the difference A-B to number S in an interval [-100,100], in such a way that if A = 0, A-B = -B and the scaled value S is 100, and if B=0, A-B=A and the scaled value is S = -100. Finally, if A-B = 0 then S = 0. Any other difference is scaled on the interval [-100 , 100].

First, I tried this: for difference = -B, then S=100
for difference = A, S=-100
for difference = 0, S=0
I have set up a linear equation using slope 100+100/-B-A = -200/(A+B).
Therefore, S = [-200/(A+B)]*difference = [-200/(A+B)]*(A-B)

Then, for any value A and B > 0, it should give me an S between [-100,100], but this does not work. I have no idea why.

Can anyone please point me towards the right direction?
 
Physics news on Phys.org
  • #2
The relation you mention is not a linear one.

Moreover, you have not limited the values for A and B.
This means that an A-B of minus infinity must be mapped to S = +100,
that an A-B of plus infinity must be mapped to S = -100,
and that an A-B of zero must be mapped to S = 0.

You could do this for instance with:

[tex]S = -100 \frac {2} {\pi} \arctan(A-B)[/tex]
 

Related to Rescaling Data Set: Solve Math Question for Physics Lab

1. What is rescaling a data set?

Rescaling a data set is the process of adjusting the values of the data to fit within a specific range. This can be done by multiplying or dividing all the data points by a constant value.

2. Why is rescaling a data set important in a physics lab?

In a physics lab, it is important to have data that is in a consistent and manageable range. Rescaling the data allows for easier analysis and comparison of different data sets.

3. How do you rescale a data set?

To rescale a data set, you can first determine the minimum and maximum values of the data. Then, you can use a mathematical formula to adjust the values to the desired range. For example, if you want the data to be between 0 and 1, you can divide all the data points by the maximum value.

4. What are the benefits of rescaling a data set?

Rescaling a data set can help to eliminate outliers and make the data more visually appealing. It can also make it easier to compare data sets with different scales and units.

5. Are there any limitations to rescaling a data set?

One limitation of rescaling a data set is that it can alter the distribution of the data. This can affect the accuracy of statistical analysis and should be taken into consideration when rescaling data.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
5
Views
814
  • Precalculus Mathematics Homework Help
Replies
3
Views
925
  • Precalculus Mathematics Homework Help
Replies
1
Views
612
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
14
Views
1K
  • Classical Physics
Replies
7
Views
912
  • Calculus and Beyond Homework Help
Replies
1
Views
364
  • Precalculus Mathematics Homework Help
Replies
1
Views
750
  • Precalculus Mathematics Homework Help
Replies
5
Views
2K
  • Differential Equations
Replies
1
Views
723
Back
Top