X3226

SS(a → bc) OF X105

< 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) { 58, 99 }: Central Line L(58, 99) { 75, 87 }: Central Line L(75, 87) { 6, 190 }: Central Line L(6, 190) { 239, 292 }: Central Line L(239, 292) { 1, 668 }: Central Line L(1, 668) { 56, 664 }: Central Line L(56, 664) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3009 = (LEMOINE AXIS)∩(NAGEL LINE) (1.4560, 1.1000) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_99 = STEINER POINT (0.1109, 0.4322) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_87 = -CROSS CONJUGATE OF X(1) (0.4794, 0.1691) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_1 = INCENTER (0.5714, 0.2333) X_668 = TRILINEAR POLE OF LINE X(2)X(37) (0.0159, 0.3302) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_664 = TRILINEAR POLE OF LINE X(2)X(7) (0.2391, 0.5142) X_3226 = SS(a → bc) OF X(105) (1.0976, 0.1415) A B C X3009 X58 X99 X75 X87 X6 X190 X239 X292 X1 X668 X56 X664 X3226 (a, b, c) = (5, 6, 7) | AB = 1

X3226 (SS(a → bc) OF X105) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3226 = SS(a → bc) OF X_105."""

        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_03226(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3226 = SS(a → bc) OF X_105 on reference triangle ABC."""
            X_3009 = eval_trilinear_point(model, A, B, C, '(a*(a*(b**(2) + c**(2)) - b*c*(b + c)))', ID="X_3009", classes=["center"])
            X_3226 = isogonal_conjugate(model, A, B, C, X_3009, ID="X_3226", classes=["selected", "target"])
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            central_line(model, X_58, X_99, 58, 99, incident=True)
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center", "incident"])
            X_87 = eval_trilinear_point(model, A, B, C, '1/(a*b + a*c - b*c)', ID="X_87", classes=["center", "incident"])
            central_line(model, X_75, X_87, 75, 87, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_190 = eval_trilinear_point(model, A, B, C, 'b*c/(b - c)', ID="X_190", classes=["center", "incident"])
            central_line(model, X_6, X_190, 6, 190, incident=True)
            return promote_point_to_top(model, X_3226)


        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_3226 on the given reference triangle."""
            model = create_model('X_3226 = SS(a → bc) OF X_105')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03226(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-03226.json"))
            write_center_svg(
                model_acute,
                here / "x-03226.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )