X436

EULER X48-7th-SUBSTITUTION POINT

X436 = orthocentroidal-circle-inverse of X52249
< 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 { 51, 107 }: Central Line L(51, 107) { 110, 324 }: Central Line L(110, 324) { 578, 1093 }: Central Line L(578, 1093) { 6, 1988 }: Central Line L(6, 1988) { 1495, 1629 }: Central Line L(1495, 1629) 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_51 = CENTROID OF ORTHIC TRIANGLE (0.6093, 0.3186) X_107 = Ψ(SYMMEDIAN POINT, ORTHOCENTER) (0.5733, 0.6071) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_324 = ISOTOMIC CONJUGATE OF X(97) (0.5855, 0.3796) X_578 = ORTHOHARMONIC OF X(216) (0.5933, 0.2561) X_1093 = TRILINEAR CUBE OF X(4) (0.6189, 0.5667) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1988 = 2nd LEMOINE ANTIPARALLELS POINT (0.6134, 0.7727) X_1495 = CROSSSUM OF X(2) AND X(30) (0.8194, 1.4855) X_1629 = TCC-PERSPECTOR OF X(275) (0.6231, 0.4755) X_436 = EULER X(48)-7th-SUBSTITUTION POINT (0.6027, 0.3709) A B C X2 X3 X4 X51 X107 X110 X324 X578 X1093 X6 X1988 X1495 X1629 X436 (a, b, c) = (5, 6, 7) | AB = 1

X436 (EULER X48-7th-SUBSTITUTION POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_436 = EULER X_48-7th-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_barycentric_point,
            eval_trilinear_point,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00436(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_436 = EULER X_48-7th-SUBSTITUTION POINT on reference triangle ABC."""
            X_436 = eval_barycentric_point(model, A, B, C, '(a**(2) + b**(2) - c**(2)) * (a**(2) - b**(2) + c**(2)) * (a**(8) - 2*a**(6)*b**(2) + a**(4)*b**(4) - 2*a**(6)*c**(2) + 3*a**(4)*b**(2)*c**(2) - b**(6)*c**(2) + a**(4)*c**(4) + 2*b**(4)*c**(4) - b**(2)*c**(6))', ID="X_436", 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_51 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(B - C)', ID="X_51", classes=["center", "incident"])
            X_107 = eval_trilinear_point(model, A, B, C, '1/(cos(A)*(sin(2*B) - sin(2*C)))', ID="X_107", classes=["center", "incident"])
            central_line(model, X_51, X_107, 51, 107, incident=True)
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            X_324 = eval_trilinear_point(model, A, B, C, 'b*c*sec(A)*cos(B - C)', ID="X_324", classes=["center", "incident"])
            central_line(model, X_110, X_324, 110, 324, incident=True)
            return promote_point_to_top(model, X_436)


        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_436 on the given reference triangle."""
            model = create_model('X_436 = EULER X_48-7th-SUBSTITUTION POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00436(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-00436.json"))
            write_center_svg(
                model_acute,
                here / "x-00436.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )