X1957

CROSSSUM OF PU(22)

< 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) { 31, 92 }: Central Line L(31, 92) { 1, 204 }: Central Line L(1, 204) { 63, 240 }: Central Line L(63, 240) { 158, 255 }: Central Line L(158, 255) { 171, 281 }: Central Line L(171, 281) { 212, 243 }: Central Line L(212, 243) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1910 = TRILINEAR POLE OF PU(23) (0.9516, -0.2978) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_92 = CEVAPOINT OF INCENTER AND CLAWSON POINT (0.5949, 0.3639) X_1 = INCENTER (0.5714, 0.2333) X_204 = -CEVA CONJUGATE OF X(19) (0.6683, 3.3982) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_158 = -CROSS CONJUGATE OF X(92) (0.6215, 0.5117) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_171 = {X(2), X(31)}-HARMONIC CONJUGATE OF X(238) (0.5819, 0.2525) X_281 = -CROSS CONJUGATE OF X(9) (0.5796, 0.3202) X_212 = -CEVA CONJUGATE OF X(41) (0.4719, 0.0786) X_243 = -LINE CONJUGATE OF X(73) (0.7516, 0.9505) X_1957 = CROSSSUM OF PU(22) (0.5767, 0.4051) A B C X1910 X240 X31 X92 X1 X204 X63 X158 X255 X171 X281 X212 X243 X1957 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1957 = CROSSSUM OF PU(22)."""

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


        def construct_x_01957(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1957 = CROSSSUM OF PU(22) on reference triangle ABC."""
            X_1910 = eval_trilinear_point(model, A, B, C, '(a/(a**(2)*cos(B)*cos(C) - b*c*(cos(A))**(2)))', ID="X_1910", classes=["center"])
            X_240 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(A +  omega  )', ID="X_240", classes=["center"])
            X_1957 = ceva_conjugate(model, A, B, C, X_1910, X_240, ID="X_1957", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_92 = eval_trilinear_point(model, A, B, C, 'csc(2*A)', ID="X_92", classes=["center", "incident"])
            central_line(model, X_31, X_92, 31, 92, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_204 = eval_trilinear_point(model, A, B, C, '((tan(A))*(tan(B) + tan(C) - tan(A)))', ID="X_204", classes=["center", "incident"])
            central_line(model, X_1, X_204, 1, 204, 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_240, 63, 240, incident=True)
            return promote_point_to_top(model, X_1957)


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