X3743

X10com[n(MEDIAL)*n(INCENTRAL)]

< 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) { 10, 37 }: Central Line L(10, 37) { 484, 1255 }: Central Line L(484, 1255) { 40, 2294 }: Central Line L(40, 2294) { 1126, 1757 }: Central Line L(1126, 1757) { 55, 2915 }: Central Line L(55, 2915) 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_21 = SCHIFFLER POINT (0.5287, 0.1771) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_484 = 1st EVANS PERSPECTOR (2.0952, 3.0327) X_1255 = ISOGONAL CONJUGATE OF X(1100) (0.5639, 0.2247) X_40 = BEVAN POINT (0.4286, -0.0292) X_2294 = -ISOCONJUGATE OF X(1175) (0.5748, 0.2454) X_1126 = ISOGONAL CONJUGATE OF X(1125) (0.5938, 0.2586) X_1757 = MIMOSA TRANSFORM OF X(295) (2.6667, 2.7217) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_2915 = TANGENTIAL-ISOGONAL CONJUGATE OF X(1) (0.4365, -0.0641) X_3743 = com[n(MEDIAL)*n(INCENTRAL)] (0.5612, 0.2198) A B C X1 X21 X10 X37 X484 X1255 X40 X2294 X1126 X1757 X55 X2915 X3743 (a, b, c) = (5, 6, 7) | AB = 1

X3743 (X10com[n(MEDIAL)*n(INCENTRAL)]) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3743 = X_10com[n(MEDIAL)*n(INCENTRAL)]."""

        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_barycentric_point,
            eval_trilinear_point,
            incenter_of,
            point_from_barycentrics,
            promote_point_to_top,
            spieker_center_of,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03743(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3743 = X_10com[n(MEDIAL)*n(INCENTRAL)] on reference triangle ABC."""
            X_3743 = eval_barycentric_point(model, A, B, C, 'a*(b + c)*(a**(2) + b**(2) + c**(2) + 2*a*b + 2*a*c + b*c)', ID="X_3743", 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_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            central_line(model, X_10, X_37, 10, 37, incident=True)
            X_484 = eval_trilinear_point(model, A, B, C, '1 + 2*(cos(A) - cos(B) - cos(C))', ID="X_484", classes=["center", "incident"])
            X_1255 = point_from_barycentrics(model, A, B, C, 0.29086678, 0.3344968, 0.37463642, ID="X_1255", classes=["center", "incident"])
            central_line(model, X_484, X_1255, 484, 1255, incident=True)
            return promote_point_to_top(model, X_3743)


        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_3743 on the given reference triangle."""
            model = create_model('X_3743 = X_10com[n(MEDIAL)*n(INCENTRAL)]')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03743(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-03743.json"))
            write_center_svg(
                model_acute,
                here / "x-03743.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )