X604

X56-CEVA CONJUGATE OF X31

< 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) { 6, 41 }: Central Line L(6, 41) { 57, 77 }: Central Line L(57, 77) { 31, 184 }: Central Line L(31, 184) { 1, 572 }: Central Line L(1, 572) { 36, 573 }: Central Line L(36, 573) { 109, 739 }: Central Line L(109, 739) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_1 = INCENTER (0.5714, 0.2333) X_572 = ORTHOGONAL OF X(58) (7.2953, -0.6907) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_573 = ORTHOHARMONIC OF X(58) (0.4583, 0.2009) X_109 = Ψ(INCENTER, CIRCUMCENTER) (0.3636, 0.5938) X_739 = EVEN (- 1, 0) CIRCUMCIRCLE POINT (1.0101, 0.0884) X_604 = -CEVA CONJUGATE OF X(31) (0.6442, 0.3744) A B C X56 X31 X6 X41 X57 X77 X184 X1 X572 X36 X573 X109 X739 X604 (a, b, c) = (5, 6, 7) | AB = 1

X604 (X56-CEVA CONJUGATE OF X31) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_604 = X_56-CEVA CONJUGATE OF X_31."""

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


        def construct_x_00604(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_604 = X_56-CEVA CONJUGATE OF X_31 on reference triangle ABC."""
            X_312 = eval_trilinear_point(model, A, B, C, '(b + c - a)*b**(2)*c**(2)', ID="X_312", classes=["center"])
            X_604 = isogonal_conjugate(model, A, B, C, X_312, ID="X_604", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center", "incident"])
            central_line(model, X_6, X_41, 6, 41, incident=True)
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center", "incident"])
            X_77 = eval_trilinear_point(model, A, B, C, '1/(1 + sec(A))', ID="X_77", classes=["center", "incident"])
            central_line(model, X_57, X_77, 57, 77, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_184 = eval_trilinear_point(model, A, B, C, 'a**(2)*cos(A)', ID="X_184", classes=["center", "incident"])
            central_line(model, X_31, X_184, 31, 184, incident=True)
            return promote_point_to_top(model, X_604)


        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_604 on the given reference triangle."""
            model = create_model('X_604 = X_56-CEVA CONJUGATE OF X_31')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00604(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-00604.json"))
            write_center_svg(
                model_acute,
                here / "x-00604.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )