X2983

DC(X27)

< 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) { 9, 34 }: Central Line L(9, 34) { 56, 219 }: Central Line L(56, 219) { 63, 269 }: Central Line L(63, 269) { 1, 1257 }: Central Line L(1, 1257) { 6, 1260 }: Central Line L(6, 1260) { 71, 1474 }: Central Line L(71, 1474) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_647 = CROSSDIFFERENCE OF X(2) AND X(3) (4.2063, -0.5653) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_9 = MITTENPUNKT (0.5110, 0.1615) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_269 = ISOGONAL CONJUGATE OF X(200) (0.6369, 0.3847) X_1 = INCENTER (0.5714, 0.2333) X_1257 = ISOGONAL CONJUGATE OF X(1104) (0.4843, 0.1638) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1260 = ISOGONAL CONJUGATE OF X(1119) (0.3557, 0.0365) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_1474 = -BETH CONJUGATE OF X(1172) (0.6165, 0.3951) X_2983 = DC(X(27)) (0.5241, 0.1955) A B C X647 X101 X9 X34 X56 X219 X63 X269 X1 X1257 X6 X1260 X71 X1474 X2983 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2983 = DC(X_27)."""

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


        def construct_x_02983(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2983 = DC(X_27) on reference triangle ABC."""
            X_9 = mittenpunkt_of(model, A, B, C, ID="X_9", classes=["center"])
            X_34 = eval_trilinear_point(model, A, B, C, '1 - sec(A)', ID="X_34", classes=["center"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center"])
            X_219 = eval_trilinear_point(model, A, B, C, 'cos(A)*cot(A/2)', ID="X_219", classes=["center"])
            central_line(model, X_9, X_34, 9, 34)
            central_line(model, X_56, X_219, 56, 219)
            X_2983 = intersect_lines(model, X_9, X_34, X_56, X_219, ID="X_2983", classes=["selected", "target"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            X_269 = eval_trilinear_point(model, A, B, C, '(tan(A/2))**(2)', ID="X_269", classes=["center", "incident"])
            central_line(model, X_63, X_269, 63, 269, incident=True)
            return promote_point_to_top(model, X_2983)


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