X2189

X2-ISOCONJUGATE OF X201

X2189 = polar conjugate of X34388
< 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, 112 }: Central Line L(19, 112) { 21, 270 }: Central Line L(21, 270) { 27, 272 }: Central Line L(27, 272) { 28, 1104 }: Central Line L(28, 1104) { 6, 1175 }: Central Line L(6, 1175) { 25, 1169 }: Central Line L(25, 1169) 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_112 = Ψ(ORTHOCENTER, SYMMEDIAN POINT) (0.5162, 0.6121) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_270 = ISOGONAL CONJUGATE OF X(201) (0.6168, 0.3881) X_27 = CEVAPOINT OF ORTHOCENTER AND CLAWSON CENTER (0.6182, 0.4112) X_272 = ISOGONAL CONJUGATE OF X(209) (-0.2458, -0.0534) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_1104 = CROSSPOINT OF X(1) AND X(28) (0.6311, 0.3042) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1175 = 1st SARAGOSSA POINT OF X(65) (0.5976, 0.2549) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_1169 = 1st SARAGOSSA POINT OF X(37) (0.6140, 0.2950) X_2189 = -ISOCONJUGATE OF X(201) (0.6289, 0.4170) A B C X19 X112 X21 X270 X27 X272 X28 X1104 X6 X1175 X25 X1169 X2189 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2189 = X_2-ISOCONJUGATE OF X_201."""

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


        def construct_x_02189(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2189 = X_2-ISOCONJUGATE OF X_201 on reference triangle ABC."""
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_112 = eval_trilinear_point(model, A, B, C, 'a/(sin(2*B) - sin(2*C))', ID="X_112", classes=["center"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center"])
            X_270 = eval_trilinear_point(model, A, B, C, '(sec(A))/(1 + cos(B - C))', ID="X_270", classes=["center"])
            central_line(model, X_19, X_112, 19, 112)
            central_line(model, X_21, X_270, 21, 270)
            X_2189 = intersect_lines(model, X_19, X_112, X_21, X_270, ID="X_2189", classes=["selected", "target"])
            X_27 = eval_trilinear_point(model, A, B, C, '(sec(A))/(b + c)', ID="X_27", classes=["center", "incident"])
            X_272 = eval_trilinear_point(model, A, B, C, '(1/((sin(A) + sin(A - B) + sin(A - C))*(sin(B) + sin(C))))', ID="X_272", classes=["center", "incident"])
            central_line(model, X_27, X_272, 27, 272, incident=True)
            return promote_point_to_top(model, X_2189)


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