X2986

DC(X74)

X2986 = trilinear pole of line X3X523 (the line of the Ehrmann cross-triangle)
< 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) { 4, 110 }: Central Line L(4, 110) { 94, 323 }: Central Line L(94, 323) { 338, 394 }: Central Line L(338, 394) { 98, 858 }: Central Line L(98, 858) { 340, 687 }: Central Line L(340, 687) { 10, 1331 }: Central Line L(10, 1331) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_110 = FOCUS OF KIEPERT PARABOLA (0.2516, 0.5478) X_94 = ISOGONAL CONJUGATE OF X(50) (0.9069, -0.1331) X_323 = ISOTOMIC CONJUGATE OF X(94) (-0.8839, -1.3275) X_338 = CEVAPOINT OF X(115) AND X(125) (0.6941, 0.0587) X_394 = -CEVA CONJUGATE OF X(3) (0.3778, 0.0284) X_98 = TARRY POINT (0.8891, -0.2281) X_858 = COMPLEMENT OF X(23) (0.1126, -0.9116) X_340 = ISOTOMIC CONJUGATE OF X(265) (1.2317, 1.4188) X_687 = TRILINEAR POLE OF LINE X(4)X(110) (1.3956, -3.1383) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_1331 = ORTHOCORRESPONDENT OF X(101) (-0.2308, 0.2512) X_2986 = DC(X(74)) (1.2786, 0.1147) A B C X4 X110 X94 X323 X338 X394 X98 X858 X340 X687 X10 X1331 X2986 (a, b, c) = (5, 6, 7) | AB = 1

X2986 (DC(X74)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2986 = DC(X_74)."""

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


        def construct_x_02986(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2986 = DC(X_74) on reference triangle ABC."""
            X_2986 = eval_barycentric_point(model, A, B, C, '1/(1 + cos(2*B) + cos(2*C))', ID="X_2986", classes=["selected", "target"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_110 = eval_trilinear_point(model, A, B, C, 'csc(B - C)', ID="X_110", classes=["center", "incident"])
            central_line(model, X_4, X_110, 4, 110, incident=True)
            X_94 = eval_trilinear_point(model, A, B, C, 'csc(3*A)', ID="X_94", classes=["center", "incident"])
            X_323 = eval_trilinear_point(model, A, B, C, 'sin(3*A)*(csc(A))**(2)', ID="X_323", classes=["center", "incident"])
            central_line(model, X_94, X_323, 94, 323, incident=True)
            X_338 = eval_trilinear_point(model, A, B, C, '(b**(2) - c**(2))**(2)/a**(3)', ID="X_338", classes=["center", "incident"])
            X_394 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A)', ID="X_394", classes=["center", "incident"])
            central_line(model, X_338, X_394, 338, 394, incident=True)
            return promote_point_to_top(model, X_2986)


        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_2986 on the given reference triangle."""
            model = create_model('X_2986 = DC(X_74)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02986(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-02986.json"))
            write_center_svg(
                model_acute,
                here / "x-02986.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )