X3433

X7-VERTEX CONJUGATE OF X7

< 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) { 104, 378 }: Central Line L(104, 378) { 3, 518 }: Central Line L(3, 518) { 48, 672 }: Central Line L(48, 672) { 7, 1486 }: Central Line L(7, 1486) { 692, 1037 }: Central Line L(692, 1037) { 56, 1876 }: Central Line L(56, 1876) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2175 = -ISOCONJUGATE OF X(85) (0.6102, 0.2574) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_378 = REFLECTION OF X(22) IN X(3) (0.5857, 0.3262) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_672 = CROSSDIFFERENCE OF X(1) AND X(514) (1.9245, 2.2184) X_7 = GERGONNE POINT (0.5903, 0.2769) X_1486 = PERSPECTOR OF TANGENTIAL AND INTOUCH TRIANGLES (0.5798, 0.2866) X_692 = -CEVA CONJUGATE OF X(101) (0.2833, 0.5715) X_1037 = CEVAPOINT OF X(55) AND X(56) (0.5823, 0.2853) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_1876 = ZOSMA TRANSFORM OF X(516) (0.6639, 0.6754) X_3433 = -VERTEX CONJUGATE OF X(7) (0.6221, 0.2471) A B C X2175 X6 X104 X378 X3 X518 X48 X672 X7 X1486 X692 X1037 X56 X1876 X3433 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3433 = X_7-VERTEX CONJUGATE OF X_7."""

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


        def construct_x_03433(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3433 = X_7-VERTEX CONJUGATE OF X_7 on reference triangle ABC."""
            X_3433 = eval_barycentric_point(model, A, B, C, 'a**(2)/(a**(3) - a**(2)*b - a**(2)*c + a*b**(2) + a*c**(2) - (b + c)*(b - c)**(2))', ID="X_3433", classes=["selected", "target"])
            X_104 = eval_trilinear_point(model, A, B, C, '1/(-1 + cos(B) + cos(C))', ID="X_104", classes=["center", "incident"])
            X_378 = eval_trilinear_point(model, A, B, C, 'sec(A) + 2*cos(A)', ID="X_378", classes=["center", "incident"])
            central_line(model, X_104, X_378, 104, 378, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_518 = eval_trilinear_point(model, A, B, C, '(a*b + a*c - b**(2) - c**(2))', ID="X_518", classes=["center", "incident"])
            central_line(model, X_3, X_518, 3, 518, incident=True)
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            X_672 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2) - a*(b + c))', ID="X_672", classes=["center", "incident"])
            central_line(model, X_48, X_672, 48, 672, incident=True)
            return promote_point_to_top(model, X_3433)


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