X1502

ISOGONAL CONJUGATE OF X1501

< 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) { 76, 141 }: Central Line L(76, 141) { 99, 160 }: Central Line L(99, 160) { 2, 308 }: Central Line L(2, 308) { 69, 290 }: Central Line L(69, 290) { 66, 315 }: Central Line L(66, 315) { 264, 305 }: Central Line L(264, 305) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1501 = TRILINEAR 5th POWER POINT (0.6596, 0.3922) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_141 = COMPLEMENT OF SYMMEDIAN POINT (0.5061, 0.1663) X_99 = STEINER POINT (0.1109, 0.4322) X_160 = -OF-TANGENTIAL-TRIANGLE (0.4841, -0.0647) X_2 = CENTROID (0.5374, 0.2000) X_308 = ISOTOMIC CONJUGATE OF X(39) (0.4915, 0.1700) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_290 = ISOGONAL CONJUGATE OF X(237) (0.7829, -0.1380) X_66 = ISOGONAL CONJUGATE OF X(22) (0.5912, 1.0593) X_315 = ISOTOMIC CONJUGATE OF X(66) (0.3323, -0.0666) X_264 = ISOTOMIC CONJUGATE OF CIRCUMCENTER (0.5720, 0.3293) X_305 = ISOTOMIC CONJUGATE OF X(25) (0.3258, 0.0397) X_1502 = ISOGONAL CONJUGATE OF X(1501) (0.3682, 0.0896) A B C X1501 X76 X141 X99 X160 X2 X308 X69 X290 X66 X315 X264 X305 X1502 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1502 = ISOGONAL CONJUGATE OF X_1501."""

        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,
            centroid_of,
            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_01502(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1502 = ISOGONAL CONJUGATE OF X_1501 on reference triangle ABC."""
            X_1501 = eval_trilinear_point(model, A, B, C, 'a**(5)', ID="X_1501", classes=["center"])
            X_1502 = isogonal_conjugate(model, A, B, C, X_1501, ID="X_1502", classes=["selected", "target"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            X_141 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) + c**(2))', ID="X_141", classes=["center", "incident"])
            central_line(model, X_76, X_141, 76, 141, incident=True)
            X_99 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(2) - c**(2))', ID="X_99", classes=["center", "incident"])
            X_160 = eval_trilinear_point(model, A, B, C, '(a*((b**(2) + c**(2))*sin(2*A) + (c**(2) - a**(2))*sin(2*B) + (b**(2) - a**(2))*sin(2*C)))', ID="X_160", classes=["center", "incident"])
            central_line(model, X_99, X_160, 99, 160, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_308 = eval_trilinear_point(model, A, B, C, 'b**(3)*c**(3)/(b**(2) + c**(2))', ID="X_308", classes=["center", "incident"])
            central_line(model, X_2, X_308, 2, 308, incident=True)
            return promote_point_to_top(model, X_1502)


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