X2113

X2-ISOCONJUGATE OF X2112

< 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) { 672, 1282 }: Central Line L(672, 1282) { 238, 2112 }: Central Line L(238, 2112) { 1931, 2110 }: Central Line L(1931, 2110) { 1458, 2114 }: Central Line L(1458, 2114) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_2 = CENTROID (0.5374, 0.2000) X_672 = CROSSDIFFERENCE OF X(1) AND X(514) (1.9245, 2.2184) X_1282 = 5th SHARYGIN POINT (-0.1429, 0.8165) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_2112 = POINT KEPLER IV (-0.0981, 0.7800) X_1931 = CROSSDIFFERENCE OF PU(32) (1.7418, 1.7715) X_2110 = POINT KEPLER III (-0.2477, 0.7305) X_1458 = -BETH CONJUGATE OF X(518) (0.8889, 0.9677) X_2114 = POINT KEPLER V (0.1793, 0.8022) X_2113 = -ISOCONJUGATE OF X(2112) (-0.3440, 0.6801) A B C X292 X2 X672 X1282 X238 X2112 X1931 X2110 X1458 X2114 X2113 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2113 = X_2-ISOCONJUGATE OF X_2112."""

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


        def construct_x_02113(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2113 = X_2-ISOCONJUGATE OF X_2112 on reference triangle ABC."""
            X_2113 = eval_trilinear_point(model, A, B, C, '(1/(a**(4) - b*c*a**(2) - (b**(3) + c**(3))*a + 2*b**(2)*c**(2)))', ID="X_2113", classes=["selected", "target"])
            X_672 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2) - a*(b + c))', ID="X_672", classes=["center", "incident"])
            X_1282 = point_from_barycentrics(model, A, B, C, 0.61507937, -0.97619048, 1.3611111, ID="X_1282", classes=["center", "incident"])
            central_line(model, X_672, X_1282, 672, 1282, incident=True)
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            X_2112 = eval_trilinear_point(model, A, B, C, '(a*(a**(4) - b*c*a**(2) - (b**(3) + c**(3))*a + 2*b**(2)*c**(2)))', ID="X_2112", classes=["center", "incident"])
            central_line(model, X_238, X_2112, 238, 2112, incident=True)
            X_1931 = eval_trilinear_point(model, A, B, C, '(((b + c)**(2) - (a + b)*(a + c))/(b + c))', ID="X_1931", classes=["center", "incident"])
            X_2110 = eval_trilinear_point(model, A, B, C, '(a*((b**(2) + b*c + c**(2))*a**(3) - (b + c)*(b**(2) + c**(2))*a**(2) - b*c*(b**(2) - b*c + c**(2))*a + b**(2)*c**(2)*(b + c)))', ID="X_2110", classes=["center", "incident"])
            central_line(model, X_1931, X_2110, 1931, 2110, incident=True)
            return promote_point_to_top(model, X_2113)


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