X3113

GtX(31)

< 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) { 31, 561 }: Central Line L(31, 561) { 75, 560 }: Central Line L(75, 560) { 313, 983 }: Central Line L(313, 983) { 1, 1927 }: Central Line L(1, 1927) { 870, 1441 }: Central Line L(870, 1441) { 321, 2205 }: Central Line L(321, 2205) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3116 = ISOGONAL CONJUGATE OF GtX(31) (0.5881, 0.2260) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_561 = ISOGONAL CONJUGATE OF 4th POWER POINT (0.4126, 0.1125) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_560 = 4th POWER POINT (0.6520, 0.3639) X_313 = ISOTOMIC CONJUGATE OF X(58) (0.4368, 0.1249) X_983 = ISOGONAL CONJUGATE OF X(982) (0.5890, 0.2731) X_1 = INCENTER (0.5714, 0.2333) X_1927 = TRILINEAR POLE OF PU(13) (0.9865, 0.0569) X_870 = ISOGONAL CONJUGATE OF X(869) (0.5328, 0.2015) X_1441 = -BETH CONJUGATE OF X(313) (0.5459, 0.2242) X_321 = ISOTOMIC CONJUGATE OF X(81) (0.4800, 0.1527) X_2205 = -ISOCONJUGATE OF X(310) (0.6477, 0.3479) X_3113 = GtX(31) (0.5552, 0.2402) A B C X3116 X31 X561 X75 X560 X313 X983 X1 X1927 X870 X1441 X321 X2205 X3113 (a, b, c) = (5, 6, 7) | AB = 1

X3113 (GtX(31)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3113 = GtX(31)."""

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


        def construct_x_03113(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3113 = GtX(31) on reference triangle ABC."""
            X_3113 = eval_trilinear_point(model, A, B, C, '(b**(2) - c**(2))/(a**(2)*(b**(6) - c**(6)))', ID="X_3113", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_561 = eval_trilinear_point(model, A, B, C, 'a **(- 4)', ID="X_561", classes=["center", "incident"])
            central_line(model, X_31, X_561, 31, 561, incident=True)
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            X_560 = eval_trilinear_point(model, A, B, C, 'a**(4)', ID="X_560", classes=["center", "incident"])
            central_line(model, X_75, X_560, 75, 560, incident=True)
            X_313 = eval_trilinear_point(model, A, B, C, '(b + c)*b**(3)*c**(3)', ID="X_313", classes=["center", "incident"])
            X_983 = eval_trilinear_point(model, A, B, C, '(1/(b**(2) - b*c + c**(2)))', ID="X_983", classes=["center", "incident"])
            central_line(model, X_313, X_983, 313, 983, incident=True)
            return promote_point_to_top(model, X_3113)


        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_3113 on the given reference triangle."""
            model = create_model('X_3113 = GtX(31)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03113(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-03113.json"))
            write_center_svg(
                model_acute,
                here / "x-03113.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )