X2640

CROSSSUM OF PU(78)

X2640 = crosspoint of PU(79)
< 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, 662 }: Central Line L(1, 662) { 45, 846 }: Central Line L(45, 846) { 3, 1247 }: Central Line L(3, 1247) { 19, 1581 }: Central Line L(19, 1581) { 610, 1910 }: Central Line L(610, 1910) { 1045, 1781 }: Central Line L(1045, 1781) 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_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_45 = -BETH CONJUGATE OF X(1) (0.5418, 0.1981) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_1247 = ISOGONAL CONJUGATE OF X(1046) (0.4342, 0.1331) X_19 = CLAWSON POINT (0.6246, 0.4244) X_1581 = ISOGONAL CONJUGATE OF X(1580) (1.0304, 0.0330) X_610 = -CEVA CONJUGATE OF X(1) (0.4310, -0.2713) X_1910 = TRILINEAR POLE OF PU(23) (0.9516, -0.2978) X_1045 = -CEVA CONJUGATE OF X(1) (0.6065, 0.2647) X_1781 = MIMOSA TRANSFORM OF X(1214) (0.5847, 0.2809) X_2640 = CROSSSUM OF PU(78) (1.3971, -0.3206) A B C X1 X662 X45 X846 X3 X1247 X19 X1581 X610 X1910 X1045 X1781 X2640 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2640 = CROSSSUM OF PU(78)."""

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


        def construct_x_02640(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2640 = CROSSSUM OF PU(78) on reference triangle ABC."""
            X_2640 = eval_trilinear_point(model, A, B, C, '(cot(A) - cot(B))*(cot(A) - cot(C)) - (cot(B) - cot(C))**(2)', ID="X_2640", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center", "incident"])
            central_line(model, X_1, X_662, 1, 662, incident=True)
            X_45 = eval_trilinear_point(model, A, B, C, '2*b + 2*c - a', ID="X_45", classes=["center", "incident"])
            X_846 = eval_trilinear_point(model, A, B, C, '(- a**(2) + b**(2) + c**(2) + b*c + c*a + a*b)', ID="X_846", classes=["center", "incident"])
            central_line(model, X_45, X_846, 45, 846, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_1247 = point_from_barycentrics(model, A, B, C, 0.47979502, 0.29838347, 0.22182151, ID="X_1247", classes=["center", "incident"])
            central_line(model, X_3, X_1247, 3, 1247, incident=True)
            return promote_point_to_top(model, X_2640)


        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_2640 on the given reference triangle."""
            model = create_model('X_2640 = CROSSSUM OF PU(78)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02640(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-02640.json"))
            write_center_svg(
                model_acute,
                here / "x-02640.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )