X2148

X2-ISOCONJUGATE OF X5

< 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) { 47, 48 }: Central Line L(47, 48) { 54, 71 }: Central Line L(54, 71) { 1, 563 }: Central Line L(1, 563) { 163, 1953 }: Central Line L(163, 1953) { 19, 2190 }: Central Line L(19, 2190) { 63, 2167 }: Central Line L(63, 2167) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_47 = -BETH CONJUGATE OF X(34) (0.7279, 0.4389) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_54 = KOSNITA POINT (0.5880, 0.2176) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_1 = INCENTER (0.5714, 0.2333) X_563 = TRILINEAR PRODUCT X(47)*X(48) (0.8122, 0.3243) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_1953 = BICENTRIC SUM OF PU(21) (0.5856, 0.2841) X_19 = CLAWSON POINT (0.6246, 0.4244) X_2190 = -ISOCONJUGATE OF X(216) (0.6223, 0.3794) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_2167 = -ISOCONJUGATE OF X(51) (0.5550, 0.1860) X_2148 = -ISOCONJUGATE OF X(5) (0.6157, 0.2500) A B C X47 X48 X54 X71 X1 X563 X163 X1953 X19 X2190 X63 X2167 X2148 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2148 = X_2-ISOCONJUGATE OF X_5."""

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


        def construct_x_02148(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2148 = X_2-ISOCONJUGATE OF X_5 on reference triangle ABC."""
            X_2148 = eval_trilinear_point(model, A, B, C, 'a*sec(B - C)', ID="X_2148", classes=["selected", "target"])
            X_47 = eval_trilinear_point(model, A, B, C, 'cos(2*A)', ID="X_47", classes=["center", "incident"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            central_line(model, X_47, X_48, 47, 48, incident=True)
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center", "incident"])
            X_71 = eval_trilinear_point(model, A, B, C, '(b + c)*cos(A)', ID="X_71", classes=["center", "incident"])
            central_line(model, X_54, X_71, 54, 71, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_563 = eval_trilinear_point(model, A, B, C, 'sin(4*A)', ID="X_563", classes=["center", "incident"])
            central_line(model, X_1, X_563, 1, 563, incident=True)
            return promote_point_to_top(model, X_2148)


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