X2317

X2-ISOCONJUGATE OF X1389

< 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) { 6, 41 }: Central Line L(6, 41) { 54, 71 }: Central Line L(54, 71) { 163, 284 }: Central Line L(163, 284) { 19, 1449 }: Central Line L(19, 1449) { 182, 1818 }: Central Line L(182, 1818) { 1, 2261 }: Central Line L(1, 2261) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_54 = KOSNITA POINT (0.5880, 0.2176) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_163 = TRILINEAR PRODUCT X(6)*X(110) (0.3174, 0.5883) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_19 = CLAWSON POINT (0.6246, 0.4244) X_1449 = {X(1),X(6)}-HARMONIC CONJUGATE OF X(9) (0.5830, 0.2470) X_182 = MIDPOINT OF BROCARD DIAMETER (0.5500, 0.1846) X_1818 = INVERSE MIMOSA TRANSFORM OF X(1282) (-0.1296, -0.2419) X_1 = INCENTER (0.5714, 0.2333) X_2261 = -ISOCONJUGATE OF X(945) (0.5718, 0.0871) X_2317 = -ISOCONJUGATE OF X(1389) (0.5715, 0.1981) A B C X6 X41 X54 X71 X163 X284 X19 X1449 X182 X1818 X1 X2261 X2317 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2317 = X_2-ISOCONJUGATE OF X_1389."""

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


        def construct_x_02317(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2317 = X_2-ISOCONJUGATE OF X_1389 on reference triangle ABC."""
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center"])
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center"])
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center"])
            X_71 = eval_trilinear_point(model, A, B, C, '(b + c)*cos(A)', ID="X_71", classes=["center"])
            central_line(model, X_6, X_41, 6, 41)
            central_line(model, X_54, X_71, 54, 71)
            X_2317 = intersect_lines(model, X_6, X_41, X_54, X_71, ID="X_2317", 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_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center", "incident"])
            central_line(model, X_163, X_284, 163, 284, incident=True)
            return promote_point_to_top(model, X_2317)


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