Unfortunately, poor knowledge of mathematical terms, therefore, may be difficult to formulate a question.

There is a certain value (coordinate). There are two coordinate systems.

This:

The coordinate system I and coordinate system II.

1/n - scale coordinate system II relative to the coordinate system I (where n is an integer and greater than 0).

Coordinate systems are correlated at the point 0.5, i.e., 0.5 to the second coordinate system is equal to 0.5 in the first coordinate system.

Thus, the points 0 and 1 on the second coordinate system are respectively "0 - (1 / (2 * n)) and 1 - (1 / (2 * n))" in the first coordinate system.

Task: having a coordinate "x" in the second coordinate system, to calculate the corresponding coordinate in coordinate system I.

Illustration:

Perhaps the problem is solved corny, but sit with her for a long time...

There is a certain value (coordinate). There are two coordinate systems.

This:

The coordinate system I and coordinate system II.

1/n - scale coordinate system II relative to the coordinate system I (where n is an integer and greater than 0).

Coordinate systems are correlated at the point 0.5, i.e., 0.5 to the second coordinate system is equal to 0.5 in the first coordinate system.

Thus, the points 0 and 1 on the second coordinate system are respectively "0 - (1 / (2 * n)) and 1 - (1 / (2 * n))" in the first coordinate system.

Task: having a coordinate "x" in the second coordinate system, to calculate the corresponding coordinate in coordinate system I.

Illustration:

Perhaps the problem is solved corny, but sit with her for a long time...

asked July 5th 19 at 00:07

1 answer

answered on

Solution

Make normal proportion

Find more questions by tags AlgorithmsMathematics

Further Express x1 or x2 is what you need.

n you have in the denominator? 1/(2n) or 1/2*n? - Mandy62 commented on July 5th 19 at 00:18

The proportion is: (x1-0,5) / (1-0,5)=(x2-0,5) / (1+1/(2n)-0,5) - Mandy62 commented on July 5th 19 at 00:36