X799

ISOGONAL CONJUGATE OF X798

< 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) { 99, 100 }: Central Line L(99, 100) { 88, 274 }: Central Line L(88, 274) { 63, 561 }: Central Line L(63, 561) { 310, 333 }: Central Line L(310, 333) { 190, 670 }: Central Line L(190, 670) { 110, 789 }: Central Line L(110, 789) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_798 = CROSSDIFFERENCE OF X(1) AND X(75) (-13.4299, 10.5763) X_99 = STEINER POINT (0.1109, 0.4322) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_88 = ISOGONAL CONJUGATE OF X(44) (1.0000, 0.0000) X_274 = ISOGONAL CONJUGATE OF X(213) (0.5168, 0.1843) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_561 = ISOGONAL CONJUGATE OF 4th POWER POINT (0.4126, 0.1125) X_310 = ISOTOMIC CONJUGATE OF X(42) (0.4762, 0.1536) X_333 = CEVAPOINT OF X(8) AND X(9) (0.4886, 0.1475) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_670 = TRILINEAR POLE OF LINE X(2)X(39) (-0.0057, 0.2948) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_789 = o-(- 3, 0) CIRCUMCIRCLE POINT (0.0826, 0.3957) X_799 = ISOGONAL CONJUGATE OF X(798) (0.0470, 0.3636) A B C X798 X99 X100 X88 X274 X63 X561 X310 X333 X190 X670 X110 X789 X799 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_799 = ISOGONAL CONJUGATE OF X_798."""

        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_00799(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_799 = ISOGONAL CONJUGATE OF X_798 on reference triangle ABC."""
            X_798 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b**(2) - c**(2))', ID="X_798", classes=["center"])
            X_799 = isogonal_conjugate(model, A, B, C, X_798, ID="X_799", classes=["selected", "target"])
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            X_100 = eval_trilinear_point(model, A, B, C, '1/(b - c)', ID="X_100", classes=["center", "incident"])
            central_line(model, X_99, X_100, 99, 100, incident=True)
            X_88 = eval_trilinear_point(model, A, B, C, '1/(b + c - 2*a)', ID="X_88", classes=["center", "incident"])
            X_274 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)/(b + c)', ID="X_274", classes=["center", "incident"])
            central_line(model, X_88, X_274, 88, 274, incident=True)
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            X_561 = eval_trilinear_point(model, A, B, C, 'a **(- 4)', ID="X_561", classes=["center", "incident"])
            central_line(model, X_63, X_561, 63, 561, incident=True)
            return promote_point_to_top(model, X_799)


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