X3213

X57-CEVA CONJUGATE OF X34

< 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) { 19, 56 }: Central Line L(19, 56) { 6, 208 }: Central Line L(6, 208) { 154, 204 }: Central Line L(154, 204) { 196, 380 }: Central Line L(196, 380) { 34, 604 }: Central Line L(34, 604) { 57, 1172 }: Central Line L(57, 1172) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_19 = CLAWSON POINT (0.6246, 0.4244) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_208 = -CEVA CONJUGATE OF X(34) (0.6242, -0.2728) X_154 = -CEVA CONJUGATE OF X(6) (0.4807, -0.3954) X_204 = -CEVA CONJUGATE OF X(19) (0.6683, 3.3982) X_196 = -CEVA CONJUGATE OF X(4) (0.5649, -0.1989) X_380 = INTERSECTION OF LINES X(1)X(19) AND X(9)X(55) (0.5631, 0.2035) X_604 = -CEVA CONJUGATE OF X(31) (0.6442, 0.3744) X_1172 = 1st SARAGOSSA POINT OF X(48) (0.6100, 0.3717) X_3213 = -CEVA CONJUGATE OF X(34) (0.5589, 1.1858) A B C X57 X34 X19 X56 X6 X208 X154 X204 X196 X380 X604 X1172 X3213 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3213 = X_57-CEVA CONJUGATE OF X_34."""

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


        def construct_x_03213(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3213 = X_57-CEVA CONJUGATE OF X_34 on reference triangle ABC."""
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center"])
            X_1394 = eval_trilinear_point(model, A, B, C, '(3*a**(4) - b**(4) - c**(4) - 2*a**(2)*b**(2) - 2*a**(2)*c**(2) + 2*b**(2)*c**(2))/(a - b - c)', ID="X_1394", classes=["center"])
            X_3213 = crosspoint(model, A, B, C, X_57, X_1394, ID="X_3213", classes=["selected", "target"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            central_line(model, X_19, X_56, 19, 56, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_208 = eval_trilinear_point(model, A, B, C, '((1 - sec(A))*(cos(B) + cos(C) - cos(A) - 1))', ID="X_208", classes=["center", "incident"])
            central_line(model, X_6, X_208, 6, 208, incident=True)
            X_154 = eval_trilinear_point(model, A, B, C, '(cos(A) - cos(B)*cos(C))*a**(2)', ID="X_154", classes=["center", "incident"])
            X_204 = eval_trilinear_point(model, A, B, C, '((tan(A))*(tan(B) + tan(C) - tan(A)))', ID="X_204", classes=["center", "incident"])
            central_line(model, X_154, X_204, 154, 204, incident=True)
            return promote_point_to_top(model, X_3213)


        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_3213 on the given reference triangle."""
            model = create_model('X_3213 = X_57-CEVA CONJUGATE OF X_34')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03213(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-03213.json"))
            write_center_svg(
                model_acute,
                here / "x-03213.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )