X1710

MIMOSA TRANSFORM OF X10

< 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) { 30, 40 }: Central Line L(30, 40) { 19, 91 }: Central Line L(19, 91) { 35, 228 }: Central Line L(35, 228) { 46, 407 }: Central Line L(46, 407) { 1, 1437 }: Central Line L(1, 1437) { 28, 1725 }: Central Line L(28, 1725) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_40 = BEVAN POINT (0.4286, -0.0292) X_19 = CLAWSON POINT (0.6246, 0.4244) X_91 = ISOGONAL CONJUGATE OF X(47) (-0.0865, -0.0205) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_228 = -CEVA CONJUGATE OF X(71) (0.5231, 0.1126) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_407 = CROSSPOINT OF X(4) AND X(225) (0.6211, 0.4189) X_1 = INCENTER (0.5714, 0.2333) X_1437 = -BETH CONJUGATE OF X(283) (0.5584, 0.1373) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_1725 = MIMOSA TRANSFORM OF X(74) (0.9993, 0.7957) X_1710 = MIMOSA TRANSFORM OF X(10) (0.5948, 0.4057) A B C X30 X40 X19 X91 X35 X228 X46 X407 X1 X1437 X28 X1725 X1710 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1710 = MIMOSA TRANSFORM OF X_10."""

        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_01710(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1710 = MIMOSA TRANSFORM OF X_10 on reference triangle ABC."""
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", 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_30, X_40, 30, 40)
            central_line(model, X_19, X_91, 19, 91)
            X_1710 = intersect_lines(model, X_30, X_40, X_19, X_91, ID="X_1710", classes=["selected", "target"])
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center", "incident"])
            X_228 = eval_trilinear_point(model, A, B, C, '(sin(2*A))*(sin(B) + sin(C))', ID="X_228", classes=["center", "incident"])
            central_line(model, X_35, X_228, 35, 228, incident=True)
            return promote_point_to_top(model, X_1710)


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