X1057

ISOGONAL CONJUGATE OF X1056

< 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) { 78, 392 }: Central Line L(78, 392) { 77, 999 }: Central Line L(77, 999) { 29, 1058 }: Central Line L(29, 1058) { 73, 1059 }: Central Line L(73, 1059) { 497, 1065 }: Central Line L(497, 1065) { 1037, 1064 }: Central Line L(1037, 1064) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1056 = POINT ALCYONE (0.5756, 0.2499) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_392 = X(1,6)∩X(10,11) (0.5265, 0.1800) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_999 = MIDPOINT OF X(1) AND X(57) (0.5926, 0.2722) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_1058 = POINT ALKALUROPS (0.5662, 0.2123) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_1059 = ISOGONAL CONJUGATE OF X(1058) (0.5764, 0.2549) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_1065 = ISOGONAL CONJUGATE OF X(1064) (0.5777, 0.2607) X_1037 = CEVAPOINT OF X(55) AND X(56) (0.5823, 0.2853) X_1064 = INTERSECTION OF LINES X(1)X(4) AND X(3)X(31) (0.5648, 0.2070) X_1057 = ISOGONAL CONJUGATE OF X(1056) (0.5671, 0.2170) A B C X1056 X78 X392 X77 X999 X29 X1058 X73 X1059 X497 X1065 X1037 X1064 X1057 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1057 = ISOGONAL CONJUGATE OF X_1056."""

        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_01057(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1057 = ISOGONAL CONJUGATE OF X_1056 on reference triangle ABC."""
            X_1056 = eval_trilinear_point(model, A, B, C, '(2 + cos(B)*cos(C))', ID="X_1056", classes=["center"])
            X_1057 = isogonal_conjugate(model, A, B, C, X_1056, ID="X_1057", classes=["selected", "target"])
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center", "incident"])
            X_392 = eval_trilinear_point(model, A, B, C, '(b + c)*(b**(2) + c**(2) - a**(2)) + 4*a*b*c', ID="X_392", classes=["center", "incident"])
            central_line(model, X_78, X_392, 78, 392, incident=True)
            X_77 = eval_trilinear_point(model, A, B, C, '1/(1 + sec(A))', ID="X_77", classes=["center", "incident"])
            X_999 = eval_trilinear_point(model, A, B, C, '2 - cos(A)', ID="X_999", classes=["center", "incident"])
            central_line(model, X_77, X_999, 77, 999, incident=True)
            X_29 = eval_trilinear_point(model, A, B, C, '(sec(A))/(cos(B) + cos(C))', ID="X_29", classes=["center", "incident"])
            X_1058 = eval_trilinear_point(model, A, B, C, '(2 - cos(B)*cos(C))', ID="X_1058", classes=["center", "incident"])
            central_line(model, X_29, X_1058, 29, 1058, incident=True)
            return promote_point_to_top(model, X_1057)


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