X3215

X57-CEVA CONJUGATE OF X48

< 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) { 3, 73 }: Central Line L(3, 73) { 34, 46 }: Central Line L(34, 46) { 31, 65 }: Central Line L(31, 65) { 6, 1195 }: Central Line L(6, 1195) { 283, 1038 }: Central Line L(283, 1038) { 224, 1331 }: Central Line L(224, 1331) 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_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_1195 = 3rd SARAGOSSA POINT OF X(19) (0.6245, 0.2796) X_283 = -CROSS CONJUGATE OF X(21) (0.4475, 0.0704) X_1038 = INTERSECTION OF LINES X(1)X(3) AND X(2)X(34) (0.5104, 0.1211) X_224 = -CEVA CONJUGATE OF X(63) (1.2479, 0.4419) X_1331 = ORTHOCORRESPONDENT OF X(101) (-0.2308, 0.2512) X_3215 = -CEVA CONJUGATE OF X(48) (0.8436, 0.3897) A B C X57 X48 X3 X73 X34 X46 X31 X65 X6 X1195 X283 X1038 X224 X1331 X3215 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3215 = X_57-CEVA CONJUGATE OF X_48."""

        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,
            ceva_conjugate,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03215(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3215 = X_57-CEVA CONJUGATE OF X_48 on reference triangle ABC."""
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center"])
            X_3215 = ceva_conjugate(model, A, B, C, X_57, X_48, ID="X_3215", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_73 = eval_trilinear_point(model, A, B, C, 'sec(B) + sec(C)', ID="X_73", classes=["center", "incident"])
            central_line(model, X_3, X_73, 3, 73, incident=True)
            X_34 = eval_trilinear_point(model, A, B, C, '1 - sec(A)', ID="X_34", classes=["center", "incident"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center", "incident"])
            central_line(model, X_34, X_46, 34, 46, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            central_line(model, X_31, X_65, 31, 65, incident=True)
            return promote_point_to_top(model, X_3215)


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