X2589

X3-ISOCONJUGATE OF X1114

< 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) { 240, 522 }: Central Line L(240, 522) { 11, 1312 }: Central Line L(11, 1312) { 759, 1113 }: Central Line L(759, 1113) { 162, 1823 }: Central Line L(162, 1823) { 1, 2583 }: Central Line L(1, 2583) { 19, 2579 }: Central Line L(19, 2579) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1823 = ISOGONAL CONJUGATE OF X(2589) (0.3317, -0.0818) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_522 = ISOGONAL CONJUGATE OF X(109) (-0.0318, 0.3430) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_1312 = 1st MOSES INTERSECTION (0.6472, 0.4872) X_759 = EVEN (1, 3) CIRCUMCIRCLE POINT (0.9498, -0.1389) X_1113 = 1st EULER-LINE-CIRCUMCIRCLE INTERSECTION (0.6822, 0.5787) X_162 = CEVAPOINT OF X(108) AND X(109) (0.4897, 0.6018) X_1 = INCENTER (0.5714, 0.2333) X_2583 = -ISOCONJUGATE OF X(1114) (0.6162, -2.4277) X_19 = CLAWSON POINT (0.6246, 0.4244) X_2579 = -ISOCONJUGATE OF X(1114) (0.2632, 3.1227) X_2589 = -ISOCONJUGATE OF X(1114) (0.5601, 0.9061) A B C X1823 X240 X522 X11 X1312 X759 X1113 X162 X1 X2583 X19 X2579 X2589 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2589 = X_3-ISOCONJUGATE OF X_1114."""

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


        def construct_x_02589(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2589 = X_3-ISOCONJUGATE OF X_1114 on reference triangle ABC."""
            X_1823 = point_from_barycentrics(model, A, B, C, 0.72123578, 0.4152025, -0.13643829, ID="X_1823", classes=["center"])
            X_2589 = isogonal_conjugate(model, A, B, C, X_1823, ID="X_2589", classes=["selected", "target"])
            X_240 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(A +  omega  )', ID="X_240", classes=["center", "incident"])
            X_522 = eval_trilinear_point(model, A, B, C, '(cos(B) - cos(C))*(csc(A))', ID="X_522", classes=["center", "incident"])
            central_line(model, X_240, X_522, 240, 522, incident=True)
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_1312 = eval_trilinear_point(model, A, B, C, '((J - 1)*cos(A) + 2*(J + 1)*cos(B)*cos(C))', ID="X_1312", classes=["center", "incident"])
            central_line(model, X_11, X_1312, 11, 1312, incident=True)
            X_759 = eval_trilinear_point(model, A, B, C, '(1/(a**(0)*(b**(3) + c**(3)) - a**(2)*(b**(1) + c**(1))))', ID="X_759", classes=["center", "incident"])
            X_1113 = eval_trilinear_point(model, A, B, C, '(R - d)*cos(A) - 2*R*cos(B)*cos(C)', ID="X_1113", classes=["center", "incident"])
            central_line(model, X_759, X_1113, 759, 1113, incident=True)
            return promote_point_to_top(model, X_2589)


        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_2589 on the given reference triangle."""
            model = create_model('X_2589 = X_3-ISOCONJUGATE OF X_1114')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02589(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-02589.json"))
            write_center_svg(
                model_acute,
                here / "x-02589.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )