X1732

MIMOSA TRANSFORM OF X89

< 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) { 19, 46 }: Central Line L(19, 46) { 44, 56 }: Central Line L(44, 56) { 45, 354 }: Central Line L(45, 354) { 9, 1125 }: Central Line L(9, 1125) { 71, 1697 }: Central Line L(71, 1697) { 1020, 1435 }: Central Line L(1020, 1435) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_1821 = ISOGONAL CONJUGATE OF MIMOSA TRANSFORM OF X(287) (0.8340, -0.1768) X_19 = CLAWSON POINT (0.6246, 0.4244) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_45 = -BETH CONJUGATE OF X(1) (0.5418, 0.1981) X_354 = WEILL POINT (0.5823, 0.2533) X_9 = MITTENPUNKT (0.5110, 0.1615) X_1125 = COMPLEMENT OF X(10) (0.5459, 0.2083) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_1697 = INSIMILICENTER(BEVAN CIRCLE, INCIRCLE) (0.5449, 0.1845) X_1020 = POINT ALGEDI (0.4031, 0.5979) X_1435 = -BETH CONJUGATE OF X(278) (0.6337, 0.5189) X_1732 = MIMOSA TRANSFORM OF X(89) (0.7485, 0.4796) A B C X75 X1821 X19 X46 X44 X56 X45 X354 X9 X1125 X71 X1697 X1020 X1435 X1732 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1732 = MIMOSA TRANSFORM OF X_89."""

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


        def construct_x_01732(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1732 = MIMOSA TRANSFORM OF X_89 on reference triangle ABC."""
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center"])
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center"])
            central_line(model, X_19, X_46, 19, 46)
            central_line(model, X_44, X_56, 44, 56)
            X_1732 = intersect_lines(model, X_19, X_46, X_44, X_56, ID="X_1732", classes=["selected", "target"])
            X_45 = eval_trilinear_point(model, A, B, C, '2*b + 2*c - a', ID="X_45", classes=["center", "incident"])
            X_354 = eval_trilinear_point(model, A, B, C, '(b - c)**(2) - a*b - a*c', ID="X_354", classes=["center", "incident"])
            central_line(model, X_45, X_354, 45, 354, incident=True)
            return promote_point_to_top(model, X_1732)


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