X3173

X7-CEVA CONJUGATE OF X3

< 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) { 1, 90 }: Central Line L(1, 90) { 63, 77 }: Central Line L(63, 77) { 6, 226 }: Central Line L(6, 226) { 278, 651 }: Central Line L(278, 651) { 55, 916 }: Central Line L(55, 916) { 221, 758 }: Central Line L(221, 758) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_7 = GERGONNE POINT (0.5903, 0.2769) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_1 = INCENTER (0.5714, 0.2333) X_90 = -CROSS CONJUGATE OF X(1) (0.1022, 0.0201) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_278 = ISOGONAL CONJUGATE OF X(219) (0.6278, 0.4577) X_651 = TRILINEAR POLE OF LINE X(1)X(3) (0.3048, 0.5599) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_916 = -CEVA CONJUGATE OF X(3) (0.0224, -0.0814) X_221 = -CEVA CONJUGATE OF X(56) (0.5474, -0.0688) X_758 = EVEN (1, 3) INFINITY POINT (0.1821, -0.2671) X_3173 = -CEVA CONJUGATE OF X(3) (0.8859, 0.3761) A B C X7 X3 X1 X90 X63 X77 X6 X226 X278 X651 X55 X916 X221 X758 X3173 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3173 = X_7-CEVA CONJUGATE OF X_3."""

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


        def construct_x_03173(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3173 = X_7-CEVA CONJUGATE OF X_3 on reference triangle ABC."""
            X_3173 = eval_barycentric_point(model, A, B, C, '(a**(2)*(b**(2) + c**(2) - a**(2))*(a**(3) - a**(2)*b - a**(2)*c - a*(b + c)**(2) + (b + c)*(b**(2) + c**(2)))/(b + c - a))', ID="X_3173", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_90 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A))', ID="X_90", classes=["center", "incident"])
            central_line(model, X_1, X_90, 1, 90, incident=True)
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", 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_63, X_77, 63, 77, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_226 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cos(B) + cos(C))', ID="X_226", classes=["center", "incident"])
            central_line(model, X_6, X_226, 6, 226, incident=True)
            return promote_point_to_top(model, X_3173)


        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_3173 on the given reference triangle."""
            model = create_model('X_3173 = X_7-CEVA CONJUGATE OF X_3')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03173(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-03173.json"))
            write_center_svg(
                model_acute,
                here / "x-03173.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )