X1909

CROSSSUM OF PU(9)

< 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) { 7, 8 }: Gergonne–Nagel Line { 1, 76 }: Central Line L(1, 76) { 35, 99 }: Central Line L(35, 99) { 56, 183 }: Central Line L(56, 183) { 10, 274 }: Central Line L(10, 274) { 34, 264 }: Central Line L(34, 264) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_904 = -HIRST INVERSE OF X(256) (0.6163, 0.2816) X_7 = GERGONNE POINT (0.5903, 0.2769) X_8 = NAGEL POINT (0.4694, 0.1333) X_1 = INCENTER (0.5714, 0.2333) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_99 = STEINER POINT (0.1109, 0.4322) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_183 = TRILINEAR PRODUCT X(75)X(182) (0.4700, 0.1275) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_274 = ISOGONAL CONJUGATE OF X(213) (0.5168, 0.1843) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_264 = ISOTOMIC CONJUGATE OF CIRCUMCENTER (0.5720, 0.3293) X_1909 = CROSSSUM OF PU(9) (0.5132, 0.1854) A B C X904 X7 X8 X1 X76 X35 X99 X56 X183 X10 X274 X34 X264 X1909 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1909 = CROSSSUM OF PU(9)."""

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


        def construct_x_01909(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1909 = CROSSSUM OF PU(9) on reference triangle ABC."""
            X_904 = eval_trilinear_point(model, A, B, C, 'a**(2)/(a**(2) + b*c)', ID="X_904", classes=["center"])
            X_1909 = isogonal_conjugate(model, A, B, C, X_904, ID="X_1909", classes=["selected", "target"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center", "incident"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            central_line(model, X_7, X_8, 7, 8, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            central_line(model, X_1, X_76, 1, 76, incident=True)
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center", "incident"])
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            central_line(model, X_35, X_99, 35, 99, incident=True)
            return promote_point_to_top(model, X_1909)


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