Q
Q
QuierOO2018-10-20 12:48:47
C++ / C#
QuierOO, 2018-10-20 12:48:47

How to find the midpoint of the area of ​​a complex figure?

5bcaf9f9c4f3e400692781.png
Hello! A problem arose - you need to find the middle of the area of ​​​​complex figures, that is, the line along 0x, which will divide this figure in half.
I tried to do it through the squares, but I always got an inaccurate answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2018-10-20
@Sumor

To solve the problem, you must be able to find:
Stotal - the area of ​​the entire figure.
SL(x) - the area of ​​the figure located to the left of the line x
The function SL(x) is non-decreasing, continuous, to the left of the figure it is equal to 0, to the right of the figure it is equal to Stot.
It follows from this that there is such a value xс, at which SL(xс) = 0.5 Stotal.
Analytically, it can be found only for certain cases.
It can be found by numerical methods - in several stages: we take x1, calculate SL(x1), if Stotal is greater than 0.5, we shift to the left, if less - to the right, and so on, until we get closer to the accuracy we need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question