X3747

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

X3747 = crossdifference of every pair of points on line X2X661
< 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) { 42, 213 }: Central Line L(42, 213) { 187, 237 }: Central Line L(187, 237) { 238, 239 }: Central Line L(238, 239) { 190, 714 }: Central Line L(190, 714) { 55, 869 }: Central Line L(55, 869) 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_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_213 = -CEVA CONJUGATE OF X(42) (0.6135, 0.2833) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_237 = -LINE CONJUGATE OF X(2) (0.9894, 1.3825) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_714 = EVEN (- 3, - 1) INFINITY POINT (1.0302, 0.5186) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_869 = INTERSECTION OF LINES X(1)X(2) AND X(31)X(32) (0.6039, 0.2651) X_3747 = com[n(MEDIAL)*n(INCENTRAL)] (1.3019, 1.1933) A B C X1 X21 X42 X213 X187 X237 X238 X239 X190 X714 X55 X869 X3747 (a, b, c) = (5, 6, 7) | AB = 1

X3747 (X239com[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_3747 = X_239com[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,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03747(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3747 = X_239com[n(MEDIAL)*n(INCENTRAL)] on reference triangle ABC."""
            X_3747 = eval_barycentric_point(model, A, B, C, '(a**(2)*(b + c)*(a**(2) - b*c))', ID="X_3747", 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_42 = eval_trilinear_point(model, A, B, C, 'a*(b + c)', ID="X_42", classes=["center", "incident"])
            X_213 = eval_trilinear_point(model, A, B, C, '(b + c)*a**(2)', ID="X_213", classes=["center", "incident"])
            central_line(model, X_42, X_213, 42, 213, incident=True)
            X_187 = eval_trilinear_point(model, A, B, C, 'a*(2*a**(2) - b**(2) - c**(2))', ID="X_187", classes=["center", "incident"])
            X_237 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A +  omega  )', ID="X_237", classes=["center", "incident"])
            central_line(model, X_187, X_237, 187, 237, incident=True)
            return promote_point_to_top(model, X_3747)


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