X2599

SUM OF PU(69)

< 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) { 1, 54 }: Central Line L(1, 54) { 35, 186 }: Central Line L(35, 186) { 12, 523 }: Central Line L(12, 523) { 201, 517 }: Central Line L(201, 517) { 5, 1087 }: Central Line L(5, 1087) { 655, 2595 }: Central Line L(655, 2595) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_2594 = SUM OF PU(68) (0.5791, 0.2254) X_54 = KOSNITA POINT (0.5880, 0.2176) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_186 = INVERSE-IN-CIRCUMCIRCLE OF X(4) (0.7957, 0.8758) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_201 = -CEVA CONJUGATE OF X(12) (0.4897, 0.1062) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_1087 = TRILINEAR SQUARE OF X(5) (0.5422, 0.2643) X_655 = TRILINEAR POLE OF LINE X(1)X(5) (1.0449, 0.2400) X_2595 = CROSSSUM OF PU(68) (0.5650, 0.2411) X_2599 = SUM OF PU(69) (0.5631, 0.2411) A B C X1 X2594 X54 X35 X186 X12 X523 X201 X517 X5 X1087 X655 X2595 X2599 (a, b, c) = (5, 6, 7) | AB = 1

X2599 (SUM OF PU(69)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2599 = SUM OF PU(69)."""

        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,
            ceva_conjugate,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            incenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02599(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2599 = SUM OF PU(69) on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_2594 = eval_trilinear_point(model, A, B, C, '(cos(C- A) + cos(B - A))', ID="X_2594", classes=["center"])
            X_2599 = ceva_conjugate(model, A, B, C, X_1, X_2594, ID="X_2599", classes=["selected", "target"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center", "incident"])
            central_line(model, X_1, X_54, 1, 54, incident=True)
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center", "incident"])
            X_186 = eval_trilinear_point(model, A, B, C, '4*cos(A) - sec(A)', ID="X_186", classes=["center", "incident"])
            central_line(model, X_35, X_186, 35, 186, incident=True)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            X_523 = eval_trilinear_point(model, A, B, C, 'sin(B -C)', ID="X_523", classes=["center", "incident"])
            central_line(model, X_12, X_523, 12, 523, incident=True)
            return promote_point_to_top(model, X_2599)


        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_2599 on the given reference triangle."""
            model = create_model('X_2599 = SUM OF PU(69)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02599(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-02599.json"))
            write_center_svg(
                model_acute,
                here / "x-02599.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )