H, T and A (the area of the black shape) are known.
I need to define the shape, finding the position of the top vertex.
If A is larger than the area of the H-T triangle (H*T/2), there should be only one solution, but how to find it?
I’m searching for a math function to solve this… possibly non-iterative.
(This is actually the derivative graph of an animation for a web page , but that is unrelated now.)
I never drink coffee… I probably drank it like 2 times in my life.
When i need to “wake up” (or i’m bored) i search for pseudo-easy tasks on this forum… brain fuel!
The obvious answer is to use Range to get a series of half angles, compute Area for all of them, sort to find closest area and corresponding half angle.
Slider in yellow group is ‘TARGET AREA’. ‘Steps’ slider is a form of precision, which is also affected by the range bounds (‘Half Angle Min’ and ‘Half Angle Max’).
with your script is visible that the path of the top vertex is a curve that is tangent to the mirror of the hypotenuse and goes up asymptotic to the vertical line starting from mid base… how can i convert to math this
so if we write the area of figure 3 and figure 2 exclusively in relation of the edge P, we should get an a P^2 + b P + c equation that should be solvable… probably I should just go to sleep
once you have length of edge P, angle d is known, you can calculate the position of the tip of the shape
I have the terrible feeling tomorrow morning I’m gonna be very ashamed of this message
I don’t use angles or complex math.
The shape divided to different areas and i create another area equation S which is a triangle.
a,b,c replaced by their equations.
a = (T-(2N))H/2
b = NH
c = NM/2
A (is already known) and A = a+2b+2c
S = a+1b+4c = T*(H+2M)/2
A (also) = S - 2c so: A = (T*(H+2M)/2) - 2c
…
Until we find the final equation which can solved easily.
If the two angles at the top are the same, there are two other angles which are also equal. At the right end and left end above H. Triangles a and c are similar.