X2576

X2-ISOCONJUGATE OF X2574

< 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) { 1, 19 }: Central Line L(1, 19) { 101, 1113 }: Central Line L(101, 1113) { 163, 1822 }: Central Line L(163, 1822) { 1755, 1823 }: Central Line L(1755, 1823) { 662, 2580 }: Central Line L(662, 2580) { 2159, 2579 }: Central Line L(2159, 2579) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2580 = -ISOCONJUGATE OF X(2574) (0.7025, 0.5830) X_1822 = ISOGONAL CONJUGATE OF X(2588) (0.8290, 0.5718) X_1 = INCENTER (0.5714, 0.2333) X_19 = CLAWSON POINT (0.6246, 0.4244) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_1113 = 1st EULER-LINE-CIRCUMCIRCLE INTERSECTION (0.6822, 0.5787) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_1755 = MIMOSA TRANSFORM OF X(287) (1.5943, 2.3982) X_1823 = ISOGONAL CONJUGATE OF X(2589) (0.3317, -0.0818) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_2159 = -ISOCONJUGATE OF X(30) (0.8357, -0.4858) X_2579 = -ISOCONJUGATE OF X(1114) (0.2632, 3.1227) X_2576 = -ISOCONJUGATE OF X(2574) (0.6671, 0.5770) A B C X2580 X1822 X1 X19 X101 X1113 X163 X1755 X1823 X662 X2159 X2579 X2576 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2576 = X_2-ISOCONJUGATE OF X_2574."""

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


        def construct_x_02576(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2576 = X_2-ISOCONJUGATE OF X_2574 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center"])
            X_1113 = eval_trilinear_point(model, A, B, C, '(R - d)*cos(A) - 2*R*cos(B)*cos(C)', ID="X_1113", classes=["center"])
            central_line(model, X_1, X_19, 1, 19)
            central_line(model, X_101, X_1113, 101, 1113)
            X_2576 = intersect_lines(model, X_1, X_19, X_101, X_1113, ID="X_2576", classes=["selected", "target"])
            X_163 = eval_trilinear_point(model, A, B, C, '(sin(2*A))/(sin(2*B) - sin(2*C))', ID="X_163", classes=["center", "incident"])
            X_1822 = point_from_barycentrics(model, A, B, C, -0.19858607, 0.24538924, 0.95319683, ID="X_1822", classes=["center", "incident"])
            central_line(model, X_163, X_1822, 163, 1822, incident=True)
            return promote_point_to_top(model, X_2576)


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