X1747

MIMOSA TRANSFORM OF X262

< 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) { 1, 82 }: Central Line L(1, 82) { 19, 91 }: Central Line L(19, 91) { 47, 240 }: Central Line L(47, 240) { 162, 1096 }: Central Line L(162, 1096) { 1737, 1890 }: Central Line L(1737, 1890) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_82 = ISOGONAL CONJUGATE OF X(38) (0.5943, 0.2703) X_19 = CLAWSON POINT (0.6246, 0.4244) X_91 = ISOGONAL CONJUGATE OF X(47) (-0.0865, -0.0205) X_47 = -BETH CONJUGATE OF X(34) (0.7279, 0.4389) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_162 = CEVAPOINT OF X(108) AND X(109) (0.4897, 0.6018) X_1096 = TRILINEAR SQUARE OF X(19) (0.6263, 0.5385) X_1737 = MIMOSA TRANSFORM OF X(104) (1.1156, 0.7665) X_1890 = ZOSMA TRANSFORM OF X(984) (0.6186, 0.4105) X_1747 = MIMOSA TRANSFORM OF X(262) (0.7301, 0.4903) A B C X1 X82 X19 X91 X47 X240 X162 X1096 X1737 X1890 X1747 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1747 = MIMOSA TRANSFORM OF X_262."""

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


        def construct_x_01747(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1747 = MIMOSA TRANSFORM OF X_262 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_82 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2))', ID="X_82", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_91 = eval_trilinear_point(model, A, B, C, 'sec(2*A)', ID="X_91", classes=["center"])
            central_line(model, X_1, X_82, 1, 82)
            central_line(model, X_19, X_91, 19, 91)
            X_1747 = intersect_lines(model, X_1, X_82, X_19, X_91, ID="X_1747", classes=["selected", "target"])
            X_47 = eval_trilinear_point(model, A, B, C, 'cos(2*A)', ID="X_47", classes=["center", "incident"])
            X_240 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(A +  omega  )', ID="X_240", classes=["center", "incident"])
            central_line(model, X_47, X_240, 47, 240, incident=True)
            return promote_point_to_top(model, X_1747)


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