X411

EULER X21-2nd-SUBSTITUTION POINT

X411 = ABC-to-excentral barycentric image of X12
< 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, 3 }: Euler Line { 40, 78 }: Central Line L(40, 78) { 35, 516 }: Central Line L(35, 516) { 81, 581 }: Central Line L(81, 581) { 255, 651 }: Central Line L(255, 651) { 56, 938 }: Central Line L(56, 938) 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_3 = CIRCUMCENTER (0.5000, 0.1021) X_4 = ORTHOCENTER (0.6122, 0.3958) X_40 = BEVAN POINT (0.4286, -0.0292) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_516 = ISOGONAL CONJUGATE OF X(103) (0.7703, 0.7386) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_581 = ORTHOHARMONIC OF X(284) (0.5657, 0.2106) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_938 = ANTICOMPLEMENT OF X(936) (0.5846, 0.2462) X_411 = EULER X(21)-2nd-SUBSTITUTION POINT (0.4414, -0.0514) A B C X2 X3 X4 X40 X78 X35 X516 X81 X581 X255 X651 X56 X938 X411 (a, b, c) = (5, 6, 7) | AB = 1

X411 (EULER X21-2nd-SUBSTITUTION POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_411 = EULER X_21-2nd-SUBSTITUTION POINT."""

        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_trilinear_point,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00411(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_411 = EULER X_21-2nd-SUBSTITUTION POINT on reference triangle ABC."""
            X_411 = eval_trilinear_point(model, A, B, C, '(cos(B)*cos(C) - (cos(A) + cos(B) + cos(C))*cos(A))', ID="X_411", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            central_line(model, X_2, X_3, 2, 3)
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center", "incident"])
            central_line(model, X_40, X_78, 40, 78, incident=True)
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center", "incident"])
            X_516 = eval_trilinear_point(model, A, B, C, 'b*c*((a - b)*cot(C) + (a - c)*cot(B))', ID="X_516", classes=["center", "incident"])
            central_line(model, X_35, X_516, 35, 516, incident=True)
            return promote_point_to_top(model, X_411)


        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_411 on the given reference triangle."""
            model = create_model('X_411 = EULER X_21-2nd-SUBSTITUTION POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00411(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-00411.json"))
            write_center_svg(
                model_acute,
                here / "x-00411.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )