X998

ISOGONAL CONJUGATE OF X997

< 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) { 46, 58 }: Central Line L(46, 58) { 6, 517 }: Central Line L(6, 517) { 106, 614 }: Central Line L(106, 614) { 1, 908 }: Central Line L(1, 908) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_997 = MIDPOINT OF X(1) AND X(200) (0.5053, 0.1685) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_517 = ISOGONAL CONJUGATE OF X(104) (0.8180, 0.7154) X_106 = Λ(INCENTER, CENTROID) (1.0000, 0.0000) X_614 = INTERSECTION OF LINES X(1)X(2) AND X(11)X(33) (0.6310, 0.2916) X_1 = INCENTER (0.5714, 0.2333) X_908 = POINT ACUBENS (-0.8367, -1.7996) X_998 = ISOGONAL CONJUGATE OF X(997) (0.6186, 0.3014) A B C X997 X46 X58 X6 X517 X106 X614 X1 X908 X998 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_998 = ISOGONAL CONJUGATE OF X_997."""

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


        def construct_x_00998(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_998 = ISOGONAL CONJUGATE OF X_997 on reference triangle ABC."""
            X_997 = eval_trilinear_point(model, A, B, C, '(a**(3) - a**(2)*(b + c) - a*(b - c)**(2) + (b + c)*(b**(2) + c**(2)))', ID="X_997", classes=["center"])
            X_998 = isogonal_conjugate(model, A, B, C, X_997, ID="X_998", classes=["selected", "target"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center", "incident"])
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            central_line(model, X_46, X_58, 46, 58, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_517 = eval_trilinear_point(model, A, B, C, '-1 + cos(B) + cos(C)', ID="X_517", classes=["center", "incident"])
            central_line(model, X_6, X_517, 6, 517, incident=True)
            X_106 = eval_trilinear_point(model, A, B, C, 'a/(2*a - b - c)', ID="X_106", classes=["center", "incident"])
            X_614 = eval_trilinear_point(model, A, B, C, 'a**(2) + b**(2) + c**(2) - 2*b*c', ID="X_614", classes=["center", "incident"])
            central_line(model, X_106, X_614, 106, 614, incident=True)
            return promote_point_to_top(model, X_998)


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