X2654

SUM OF PU(82)

< 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, 4 }: Incenter–Orthocenter Line { 212, 405 }: Central Line L(212, 405) { 201, 517 }: Central Line L(201, 517) { 65, 774 }: Central Line L(65, 774) { 11, 1193 }: Central Line L(11, 1193) { 410, 823 }: Central Line L(410, 823) 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_2658 = SUM OF PU(83) (0.5613, 0.1772) X_4 = ORTHOCENTER (0.6122, 0.3958) X_212 = -CEVA CONJUGATE OF X(41) (0.4719, 0.0786) X_405 = EULER LINE INTERCEPT OF LINE X(1)X(6) (0.5325, 0.1870) X_201 = -CEVA CONJUGATE OF X(12) (0.4897, 0.1062) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_774 = CROSSPOINT OF X(1) AND X(158) (0.6363, 0.3186) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_1193 = 3rd SARAGOSSA POINT OF X(1) (0.5959, 0.2573) X_410 = EULER X(29)-1st-SUBSTITUTION POINT (0.5800, 0.3115) X_823 = ISOGONAL CONJUGATE OF X(822) (0.5623, 0.6035) X_2654 = SUM OF PU(82) (0.5822, 0.2761) A B C X1 X2658 X4 X212 X405 X201 X517 X65 X774 X11 X1193 X410 X823 X2654 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2654 = SUM OF PU(82)."""

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


        def construct_x_02654(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2654 = SUM OF PU(82) on reference triangle ABC."""
            X_2654 = eval_trilinear_point(model, A, B, C, '2*sec(A) + sec(B) + sec(C)', ID="X_2654", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            central_line(model, X_1, X_4, 1, 4, incident=True)
            X_212 = eval_trilinear_point(model, A, B, C, '(cos(A))*(1 + cos(A))', ID="X_212", classes=["center", "incident"])
            X_405 = eval_trilinear_point(model, A, B, C, 'b*c*(a + b + c) + a*b*c*cos(A)', ID="X_405", classes=["center", "incident"])
            central_line(model, X_212, X_405, 212, 405, incident=True)
            X_201 = eval_trilinear_point(model, A, B, C, '(cos(A))*(1 + cos(B - C))', ID="X_201", classes=["center", "incident"])
            X_517 = eval_trilinear_point(model, A, B, C, '-1 + cos(B) + cos(C)', ID="X_517", classes=["center", "incident"])
            central_line(model, X_201, X_517, 201, 517, incident=True)
            return promote_point_to_top(model, X_2654)


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