X3543

EULER LINE INTERCEPT OF LINE X146X_148

X3543 = midpoint of X2 and X3146
< A B C >: Reference Triangle △ABC [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) { 2, 3146 }: Euler Line { 2, 3 }: Euler Line { 146, 148 }: Central Line L(146, 148) { 253, 317 }: Central Line L(253, 317) { 153, 528 }: Central Line L(153, 528) { 147, 543 }: Central Line L(147, 543) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_3146 = -CEVA CONJUGATE OF X(2) (0.8367, 0.9831) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_146 = REFLECTION OF X(20) IN X(110) (0.1155, 1.2873) X_148 = STEINER POINT OF ANTICOMPLEMENTARY TRIANGLE (1.3904, -0.2646) X_253 = -CROSS CONJUGATE OF X(2) (3.5087, 32.5688) X_317 = ISOTOMIC CONJUGATE OF X(68) (0.6796, 0.5070) X_153 = REFLECTION OF X(20) IN X(100) (-0.1020, 1.1248) X_528 = DIRECTION OF VECTOR AX + BX + CX, where X = X(11) (1.0237, -0.1286) X_147 = TARRY POINT OF ANTICOMPLEMENTARY TRIANGLE (-0.1660, 1.0561) X_543 = DIRECTION OF VECTOR AX + BX + CX, where X = X(99) (0.0220, 0.4806) X_3543 = EULER LINE INTERCEPT OF LINE X(146)X(148) (0.6871, 0.5915) A B C X2 X3146 X3 X146 X148 X253 X317 X153 X528 X147 X543 X3543 (a, b, c) = (5, 6, 7) | AB = 1

X3543 (EULER LINE INTERCEPT OF LINE X146X_148) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3543 = EULER LINE INTERCEPT OF LINE X_146X_148."""

        from __future__ import annotations

        from pathlib import Path

        import sympy.geometry as spg
        from geometor.model import Model

        from geometor.etc.ops import (
            central_line,
            centroid_of,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_barycentric_point,
            eval_trilinear_point,
            midpoint,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03543(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3543 = EULER LINE INTERCEPT OF LINE X_146X_148 on reference triangle ABC."""
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3146 = eval_trilinear_point(model, A, B, C, '4*cos(A) - 3*sin(B)*sin(C)', ID="X_3146", classes=["center"])
            X_3543 = midpoint(model, X_2, X_3146, ID="X_3543", classes=["selected", "target"], guide=False)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_146 = eval_barycentric_point(model, A, B, C, 'a**(10) + a**(8)*(b**(2) + c**(2)) - a**(6)*(8*b**(4) - 9*b**(2)*c**(2) + 8*c**(4)) + 2*a**(4)*(b**(2) + c**(2))*(4*b**(4) - 7*b**(2)*c**(2) + 4*c**(4)) - a**(2)*(b**(2) - c**(2))**(2)*(b**(4) + 9*b**(2)*c**(2) + c**(4)) - (b**(2) - c**(2))**(4)*(b**(2) + c**(2))', ID="X_146", classes=["center", "incident"])
            X_148 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(4) - (b**(2) - c**(2))**(2) + b**(2)*c**(2) - a**(2)*b**(2) - a**(2)*c**(2))', ID="X_148", classes=["center", "incident"])
            central_line(model, X_146, X_148, 146, 148, incident=True)
            X_253 = eval_trilinear_point(model, A, B, C, '((csc(A))/(tan(B) + tan(C) - tan(A)))', ID="X_253", classes=["center", "incident"])
            X_317 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(2*A)*(csc(A))**(2)', ID="X_317", classes=["center", "incident"])
            central_line(model, X_253, X_317, 253, 317, incident=True)
            return promote_point_to_top(model, X_3543)


        def build_model(
            sides: tuple[float, float, float] = (5.0, 6.0, 7.0),
            show_guides: bool = False,
        ) -> Model:
            """Build a `geometor.model.Model` for X_3543 on the given reference triangle."""
            model = create_model('X_3543 = EULER LINE INTERCEPT OF LINE X_146X_148')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03543(model, A, B, C)
            return model


        if __name__ == "__main__":
            here = Path(__file__).resolve().parent
            model_acute = build_model((5.0, 6.0, 7.0))
            model_acute.save(str(here / "x-03543.json"))
            write_center_svg(
                model_acute,
                here / "x-03543.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )