X2358

X2-ISOCONJUGATE OF X1819

< 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) { 19, 56 }: Central Line L(19, 56) { 7, 92 }: Central Line L(7, 92) { 608, 1096 }: Central Line L(608, 1096) { 65, 1826 }: Central Line L(65, 1826) { 1042, 1880 }: Central Line L(1042, 1880) { 1400, 1824 }: Central Line L(1400, 1824) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_19 = CLAWSON POINT (0.6246, 0.4244) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_7 = GERGONNE POINT (0.5903, 0.2769) X_92 = CEVAPOINT OF INCENTER AND CLAWSON POINT (0.5949, 0.3639) X_608 = ISOGONAL CONJUGATE OF X(345) (0.6361, 0.4975) X_1096 = TRILINEAR SQUARE OF X(19) (0.6263, 0.5385) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_1826 = ZOSMA TRANSFORM OF X(6) (0.6052, 0.3795) X_1042 = CROSSPOINT OF X(1) AND X(64) (0.6427, 0.3981) X_1880 = ZOSMA TRANSFORM OF X(573) (0.6390, 0.4068) X_1400 = -BETH CONJUGATE OF X(37) (0.6246, 0.3268) X_1824 = ZOSMA TRANSFORM OF X(2) (0.6198, 0.4097) X_2358 = -ISOCONJUGATE OF X(1819) (0.6083, 0.6139) A B C X19 X56 X7 X92 X608 X1096 X65 X1826 X1042 X1880 X1400 X1824 X2358 (a, b, c) = (5, 6, 7) | AB = 1

X2358 (X2-ISOCONJUGATE OF X1819) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2358 = X_2-ISOCONJUGATE OF X_1819."""

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


        def construct_x_02358(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2358 = X_2-ISOCONJUGATE OF X_1819 on reference triangle ABC."""
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_92 = eval_trilinear_point(model, A, B, C, 'csc(2*A)', ID="X_92", classes=["center"])
            central_line(model, X_19, X_56, 19, 56)
            central_line(model, X_7, X_92, 7, 92)
            X_2358 = intersect_lines(model, X_19, X_56, X_7, X_92, ID="X_2358", classes=["selected", "target"])
            X_608 = eval_trilinear_point(model, A, B, C, 'a*(1 - sec(A))', ID="X_608", classes=["center", "incident"])
            X_1096 = eval_trilinear_point(model, A, B, C, '((tan(A))**(2))', ID="X_1096", classes=["center", "incident"])
            central_line(model, X_608, X_1096, 608, 1096, incident=True)
            return promote_point_to_top(model, X_2358)


        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_2358 on the given reference triangle."""
            model = create_model('X_2358 = X_2-ISOCONJUGATE OF X_1819')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02358(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-02358.json"))
            write_center_svg(
                model_acute,
                here / "x-02358.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )