X989

ISOGONAL CONJUGATE OF X988

< 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) { 84, 171 }: Central Line L(84, 171) { 40, 256 }: Central Line L(40, 256) { 21, 612 }: Central Line L(21, 612) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_988 = INTERSECTION OF LINES X(1)X(3) AND X(9)X(39) (0.5598, 0.2120) X_84 = ISOGONAL CONJUGATE OF X(40) (0.6071, 0.6816) X_171 = {X(2), X(31)}-HARMONIC CONJUGATE OF X(238) (0.5819, 0.2525) X_40 = BEVAN POINT (0.4286, -0.0292) X_256 = 1st SHARYGIN POINT (0.5601, 0.2146) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_612 = INTERSECTION OF LINES X(1)X(2) AND X(9)X(31) (0.5582, 0.2203) X_989 = ISOGONAL CONJUGATE OF X(988) (0.5820, 0.2552) A B C X988 X84 X171 X40 X256 X21 X612 X989 (a, b, c) = (5, 6, 7) | AB = 1

X989 (ISOGONAL CONJUGATE OF X988) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_989 = ISOGONAL CONJUGATE OF X_988."""

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


        def construct_x_00989(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_989 = ISOGONAL CONJUGATE OF X_988 on reference triangle ABC."""
            X_988 = eval_trilinear_point(model, A, B, C, '(a**(3) - a**(2)*(b + c) - (3*a + b + c)*(b**(2) + c**(2)))', ID="X_988", classes=["center"])
            X_989 = isogonal_conjugate(model, A, B, C, X_988, ID="X_989", classes=["selected", "target"])
            X_84 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A) - 1)', ID="X_84", classes=["center", "incident"])
            X_171 = eval_trilinear_point(model, A, B, C, 'a**(2) + b*c', ID="X_171", classes=["center", "incident"])
            central_line(model, X_84, X_171, 84, 171, incident=True)
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            X_256 = eval_trilinear_point(model, A, B, C, '1/(a**(2) + b*c)', ID="X_256", classes=["center", "incident"])
            central_line(model, X_40, X_256, 40, 256, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_612 = eval_trilinear_point(model, A, B, C, 'a**(2) + b**(2) + c**(2) + 2*b*c', ID="X_612", classes=["center", "incident"])
            central_line(model, X_21, X_612, 21, 612, incident=True)
            return promote_point_to_top(model, X_989)


        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_989 on the given reference triangle."""
            model = create_model('X_989 = ISOGONAL CONJUGATE OF X_988')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00989(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-00989.json"))
            write_center_svg(
                model_acute,
                here / "x-00989.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )