X1780

MIMOSA TRANSFORM OF X1175

< 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, 21 }: Central Line L(1, 21) { 28, 46 }: Central Line L(28, 46) { 35, 71 }: Central Line L(35, 71) { 4, 580 }: Central Line L(4, 580) { 90, 1172 }: Central Line L(90, 1172) { 219, 1333 }: Central Line L(219, 1333) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_27 = CEVAPOINT OF ORTHOCENTER AND CLAWSON CENTER (0.6182, 0.4112) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_1 = INCENTER (0.5714, 0.2333) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_4 = ORTHOCENTER (0.6122, 0.3958) X_580 = ORTHOGONAL OF X(284) (0.7089, 0.4470) X_90 = -CROSS CONJUGATE OF X(1) (0.1022, 0.0201) X_1172 = 1st SARAGOSSA POINT OF X(48) (0.6100, 0.3717) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_1333 = POINT ALULA (0.6308, 0.3181) X_1780 = MIMOSA TRANSFORM OF X(1175) (0.7511, 0.4694) A B C X27 X284 X1 X21 X28 X46 X35 X71 X4 X580 X90 X1172 X219 X1333 X1780 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1780 = MIMOSA TRANSFORM OF X_1175."""

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


        def construct_x_01780(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1780 = MIMOSA TRANSFORM OF X_1175 on reference triangle ABC."""
            X_27 = eval_trilinear_point(model, A, B, C, '(sec(A))/(b + c)', ID="X_27", classes=["center"])
            X_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center"])
            X_1780 = ceva_conjugate(model, A, B, C, X_27, X_284, ID="X_1780", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_1, X_21, 1, 21, incident=True)
            X_28 = eval_trilinear_point(model, A, B, C, '(tan(A))/(b + c)', ID="X_28", classes=["center", "incident"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center", "incident"])
            central_line(model, X_28, X_46, 28, 46, incident=True)
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center", "incident"])
            X_71 = eval_trilinear_point(model, A, B, C, '(b + c)*cos(A)', ID="X_71", classes=["center", "incident"])
            central_line(model, X_35, X_71, 35, 71, incident=True)
            return promote_point_to_top(model, X_1780)


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