X1958

CROSSSUM OF PU(23)

< 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) { 48, 75 }: Central Line L(48, 75) { 19, 326 }: Central Line L(19, 326) { 63, 610 }: Central Line L(63, 610) { 239, 604 }: Central Line L(239, 604) { 41, 894 }: Central Line L(41, 894) { 100, 1253 }: Central Line L(100, 1253) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_610 = -CEVA CONJUGATE OF X(1) (0.4310, -0.2713) X_1740 = MIMOSA TRANSFORM OF X(184) (0.7017, 0.3500) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_19 = CLAWSON POINT (0.6246, 0.4244) X_326 = ISOTOMIC CONJUGATE OF X(158) (0.3354, 0.0219) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_604 = -CEVA CONJUGATE OF X(31) (0.6442, 0.3744) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_894 = ISOGONAL CONJUGATE OF X(893) (0.5501, 0.2184) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_1253 = ISOGONAL CONJUGATE OF X(1088) (0.5237, 0.1548) X_1958 = CROSSSUM OF PU(23) (0.4653, 0.2026) A B C X610 X1740 X48 X75 X19 X326 X63 X239 X604 X41 X894 X100 X1253 X1958 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1958 = CROSSSUM OF PU(23)."""

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


        def construct_x_01958(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1958 = CROSSSUM OF PU(23) on reference triangle ABC."""
            X_610 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C) - tan(A)', ID="X_610", classes=["center"])
            X_1740 = eval_trilinear_point(model, A, B, C, '(a**(2)*b**(2) + a**(2)*c**(2) - b**(2)*c**(2))', ID="X_1740", classes=["center"])
            X_1958 = cevapoint(model, A, B, C, X_610, X_1740, ID="X_1958", classes=["selected", "target"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            central_line(model, X_48, X_75, 48, 75, incident=True)
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_326 = eval_trilinear_point(model, A, B, C, '(cot(A))**(2)', ID="X_326", classes=["center", "incident"])
            central_line(model, X_19, X_326, 19, 326, incident=True)
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            central_line(model, X_63, X_610, 63, 610, incident=True)
            return promote_point_to_top(model, X_1958)


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