X2172

X2-ISOCONJUGATE OF X66

< 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) { 78, 101 }: Central Line L(78, 101) { 163, 255 }: Central Line L(163, 255) { 41, 386 }: Central Line L(41, 386) { 304, 662 }: Central Line L(304, 662) { 47, 1755 }: Central Line L(47, 1755) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1760 = MIMOSA TRANSFORM OF X(305) (0.3719, -0.0901) X_1 = INCENTER (0.5714, 0.2333) X_19 = CLAWSON POINT (0.6246, 0.4244) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_386 = INVERSE-IN-BROCARD-CIRCLE OF X(58) (0.5912, 0.2526) X_304 = ISOTOMIC CONJUGATE OF X(19) (0.3683, 0.0513) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_47 = -BETH CONJUGATE OF X(34) (0.7279, 0.4389) X_1755 = MIMOSA TRANSFORM OF X(287) (1.5943, 2.3982) X_2172 = -ISOCONJUGATE OF X(66) (0.4601, -0.1665) A B C X1760 X1 X19 X78 X101 X163 X255 X41 X386 X304 X662 X47 X1755 X2172 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2172 = X_2-ISOCONJUGATE OF X_66."""

        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_02172(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2172 = X_2-ISOCONJUGATE OF X_66 on reference triangle ABC."""
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center"])
            X_2172 = ceva_conjugate(model, A, B, C, X_75, X_31, ID="X_2172", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            central_line(model, X_1, X_19, 1, 19, incident=True)
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center", "incident"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            central_line(model, X_78, X_101, 78, 101, incident=True)
            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_255 = eval_trilinear_point(model, A, B, C, '(cos(A))**(2)', ID="X_255", classes=["center", "incident"])
            central_line(model, X_163, X_255, 163, 255, incident=True)
            return promote_point_to_top(model, X_2172)


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