X1809

INVERSE MIMOSA TRANSFORM OF X515

< 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) { 3, 8 }: Central Line L(3, 8) { 78, 255 }: Central Line L(78, 255) { 69, 1804 }: Central Line L(69, 1804) { 1259, 1265 }: Central Line L(1259, 1265) { 1295, 1309 }: Central Line L(1295, 1309) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1875 = ZOSMA TRANSFORM OF X(515) (0.6357, 0.6908) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_8 = NAGEL POINT (0.4694, 0.1333) X_78 = ISOGONAL CONJUGATE OF X(34) (0.3835, 0.0491) X_255 = ISOGONAL CONJUGATE OF X(158) (0.4217, 0.0365) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_1804 = INVERSE MIMOSA TRANSFORM OF X(223) (0.4495, 0.0488) X_1259 = ISOGONAL CONJUGATE OF X(1118) (0.3105, 0.0160) X_1265 = ISOTOMIC CONJUGATE OF X(1119) (0.2751, 0.0213) X_1295 = COLLINGS TRANSFORM OF X(123) (0.4680, -0.4072) X_1309 = COLLINGS TRANSFORM OF X(860) (0.4052, -0.3994) X_1809 = INVERSE MIMOSA TRANSFORM OF X(515) (0.6320, -0.0327) A B C X1875 X3 X8 X78 X255 X69 X1804 X1259 X1265 X1295 X1309 X1809 (a, b, c) = (5, 6, 7) | AB = 1

X1809 (INVERSE MIMOSA TRANSFORM OF X515) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1809 = INVERSE MIMOSA TRANSFORM OF X_515."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            intersect_lines,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01809(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1809 = INVERSE MIMOSA TRANSFORM OF X_515 on reference triangle ABC."""
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center"])
            X_78 = eval_trilinear_point(model, A, B, C, '1/(1 - sec(A))', ID="X_78", classes=["center"])
            X_255 = eval_trilinear_point(model, A, B, C, '(cos(A))**(2)', ID="X_255", classes=["center"])
            central_line(model, X_3, X_8, 3, 8)
            central_line(model, X_78, X_255, 78, 255)
            X_1809 = intersect_lines(model, X_3, X_8, X_78, X_255, ID="X_1809", classes=["selected", "target"])
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            X_1804 = eval_trilinear_point(model, A, B, C, '(1 + cos(2*A))/(1 + cos(A))', ID="X_1804", classes=["center", "incident"])
            central_line(model, X_69, X_1804, 69, 1804, incident=True)
            return promote_point_to_top(model, X_1809)


        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_1809 on the given reference triangle."""
            model = create_model('X_1809 = INVERSE MIMOSA TRANSFORM OF X_515')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01809(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-01809.json"))
            write_center_svg(
                model_acute,
                here / "x-01809.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )