X1943

CROSSSUM OF PU(18)

< 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) { 57, 239 }: Central Line L(57, 239) { 75, 222 }: Central Line L(75, 222) { 69, 278 }: Central Line L(69, 278) { 92, 394 }: Central Line L(92, 394) { 2, 914 }: Central Line L(2, 914) { 321, 651 }: Central Line L(321, 651) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_222 = -CEVA CONJUGATE OF X(56) (0.5653, 0.1568) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_278 = ISOGONAL CONJUGATE OF X(219) (0.6278, 0.4577) X_92 = CEVAPOINT OF INCENTER AND CLAWSON POINT (0.5949, 0.3639) X_394 = -CEVA CONJUGATE OF X(3) (0.3778, 0.0284) X_2 = CENTROID (0.5374, 0.2000) X_914 = ISOGONAL CONJUGATE OF X(913) (-2.5447, -1.0613) X_321 = ISOTOMIC CONJUGATE OF X(81) (0.4800, 0.1527) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_1943 = CROSSSUM OF PU(18) (0.4713, 0.1729) A B C X57 X239 X75 X222 X69 X278 X92 X394 X2 X914 X321 X651 X1943 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1943 = CROSSSUM OF PU(18)."""

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


        def construct_x_01943(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1943 = CROSSSUM OF PU(18) on reference triangle ABC."""
            X_1943 = eval_trilinear_point(model, A, B, C, '(b*c*((cos(A))**(2) + cos(B)*cos(C)))', ID="X_1943", classes=["selected", "target"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_239 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) - b*c)', ID="X_239", classes=["center", "incident"])
            central_line(model, X_57, X_239, 57, 239, incident=True)
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            X_222 = eval_trilinear_point(model, A, B, C, 'cos(A)*tan(A/2)', ID="X_222", classes=["center", "incident"])
            central_line(model, X_75, X_222, 75, 222, incident=True)
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            X_278 = eval_trilinear_point(model, A, B, C, 'sec(A)*tan(A/2)', ID="X_278", classes=["center", "incident"])
            central_line(model, X_69, X_278, 69, 278, incident=True)
            return promote_point_to_top(model, X_1943)


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