Calculate the distance between two parallel lines including ! - page 9

 
Itum:
The best solution would probably be to draw your own coordinate system

The best (tautology, by the way) solution would be to measure the distance between parallel lines, as long as this distance must be invariant, by the only measure that does not depend on the changing parameters of the graph - the price. Perpendiculars and the venerable Euclid rest. The distance between two vertical lines is not defined, because it entirely depends on the user's actions: his choice of timeframe, zoom, or any other tricks. Get to the bottom of it, you wunderkinds. Sorry if I was rude.

 
Itum:
The best solution would probably be to draw your own coordinate system
just fix the errors in the code.
 
Алексей Тарабанов:

... The distance between two vertical lines is undefined, because it depends entirely on the user's actions: their choice of timeframe, scale, or some other trickery...

) When you look at a Google map and change the scale and do other cunning, does the distance between cities change too?

 
Konstantin Gruzdev:

) When you look at a google map and change the scale and do other cunning, does the distance between cities change too?

)) The funny thing is that almost no one goes into the task... Everyone copies the code and formulas... Man, there's a $150 reward for solving the problem. If it's so easy, make that $150 in 5 minutes.)

And if you look into it, it turns out that the problem can't even be solved manually. That is, measurement of perpendicular between lines at different scales with a crosshair - always gives different results, the difference of about 500% between the extreme values)) And you want them to match... Which is contrary to reality itself.

And how are you going to automate something that is impossible in principle ?)). An error in the wording of the task...


Google map example... Let me put it this way... We take Moscow on a google map and draw a line with a marker on the monitor from the point where Moscow is, perpendicularly down by 5 cm...

Task... at any map scale, the perpendicular must hit the city whose distance from Moscow will be constant... That is, the second point could be the city of Tula, it could be Mecca, it could be the South Pole... So the challenge is to make the distance from Moscow to Tula and from Moscow to Mecca equal!!!

 
Nikolay Ivanov:

... A mistake in the wording of the assignment.

There is no error in the task.

Nikolay Ivanov:

And if you look into it, it turns out that the problem cannot be solved even manually. That is, measurement of perpendicular between the lines at different scales using the crosshair - always gives different results, the difference of about 500% between the extreme values)) And you want them to match... Which contradicts reality itself.

It solves the problem. Nothing contradicts reality. Here is the solution:

  1. ... perhaps we should save the intrigue).

 
Nikolay Ivanov:

)) The funny thing is that hardly anyone goes into the assignment... Everyone copies the code and formulas... Man, there's a $150 reward for solving the problem, if it's so easy, make that $150 in 5 minutes)).

And if you look into it, it turns out that the problem can't even be solved manually. That is, measurement of perpendicular between lines at different scales with a crosshair - always gives different results, the difference of about 500% between the extreme values)) And you want them to match... Which is contrary to reality itself.

If the distance will be in points, how can it be different? Yes, I suspect that there's a catch, or in the accuracy (once faced with this) or in the principle of constructing graph. objects.

P.S. Order is hanging for 150 and even offered to help and even gave a guarantee that the return of the entire amount if I can not cope, but I can cope just right. But it's still hanging, these 150 and remain "on paper".

 
Nikolay Ivanov:

)) The funny thing is that hardly anyone goes into the assignment... Everyone copies the code and formulas... Man, there's a $150 reward for solving the problem, if it's so easy, make that $150 in 5 minutes)).

And if you look into it, it turns out that the problem can't even be solved manually. That is, measurement of perpendicular between lines at different scales with a crosshair - always gives different results, the difference of about 500% between the extreme values)) And we need them to match... Which is contrary to reality itself.

And how are you going to automate something that is impossible in principle ?)). An error in the wording of the task...


Google map example... Let me put it this way... We take Moscow on a google map and draw a line with a marker on the monitor from the point where Moscow is, perpendicularly downwards by 5 cm...

Task... at any map scale, the perpendicular must hit the city whose distance from Moscow will be constant... That is, the second point could be the city of Tula, it could be Mecca, it could be the South Pole... So the challenge is to make the distance from Moscow to Tula and from Moscow to Mecca equal!!!

Yes you are wrong, it was immediately said that the problem is solvable with certain reservations. And, was not in the conditions of the problem to constantly recalculate the distance - that is, we must assume that we have calculated on the same TF distance and when they change the digital calculations do not change. It is clear that this cannot be done graphically using objects because of different X-axes on different TFs, because the binding during plotting is done to TFs. However, it is possible to calculate on TF=M1 and then, knowing the functions, draw on any other TF through the canvas.

 

)) Самое смешное в том, что почти никто не вникает в задание.. Все копируют код и формулы.. Блин, за решение задачки выставлено вознаграждение 150$, если все так легко, заработайте эти 150$ за 5 минут))

The funny thing is that the customer himself doesn't know what he wants.
As I understand it, this is an offer to gather information, not to pay for a solution.


And if you look into it, it turns out that the problem cannot be solved even manually. I.e. measuring perpendicular between lines at different scales with crosshairs - always gives different results, difference of about 500% between extreme values )) And we need them to match... Which is contrary to reality itself.

And how are you going to automate something that is impossible in principle ?)). The error in the wording of the task...

The problem is solvable and there are several solutions.


The google map example... Let me put it this way... Take Moscow on a google map,draw a line with a marker on the monitor from the point where Moscow is, perpendicularly downwards by 5 cm...

Task... at any map scale, the perpendicular must hit the city whose distance from Moscow will be constant... That is, the second point could be the city of Tula, it could be Mecca, it could be the South Pole... So the task is to make the distance from Moscow to Tula and from Moscow to Mecca equal!!!

You misunderstand and you're formulating it too...

The difference from google - MT4-5 has floating scales on two axes, and these scales (ratios) are different for each user.

 
Galina Bobro:

If the distance will be in points, how can it be different?


When you change the scale, you have to adjust the perpendicular so that it continues to be perpendicular... I.e. it loses its perpendicularity.

And the new perpendicular is a line from another price and another time... So there is a difference... and not by 5%... by about 500% from the smallest to the largest scale

 
Aleksey Vyazmikin:

Yes you are wrong, the conversation was immediately about the problem being solvable with certain caveats...

The problem is solvable without any reservations or limitations.

Aleksey Vyazmikin:

... It is clear that this cannot be done graphically through objects because of the different X-axes on different TFs, because the binding during construction goes exactly to the TF...

The problem is solved only on the basis of properties of the graphical object and it does not matter what timeframe they are built on.

Reason: