X2341

X2-ISOCONJUGATE OF X1464

X2341 = polar conjugate of isotomic conjugate of X1793
< 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, 13 }: Central Line L(6, 13) { 37, 101 }: Central Line L(37, 101) { 81, 226 }: Central Line L(81, 226) { 312, 645 }: Central Line L(312, 645) { 80, 1172 }: Central Line L(80, 1172) { 9, 1793 }: Central Line L(9, 1793) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_81 = CEVAPOINT OF INCENTER AND SYMMEDIAN POINT (0.5849, 0.2510) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_312 = ISOTOMIC CONJUGATE OF X(57) (0.4256, 0.1081) X_645 = BARYCENTRIC MULTIPLIER FOR KIEPERT PARABOLA (-0.0375, 0.2992) X_80 = REFLECTION OF INCENTER IN FEUERBACH POINT (0.8980, -0.1000) X_1172 = 1st SARAGOSSA POINT OF X(48) (0.6100, 0.3717) X_9 = MITTENPUNKT (0.5110, 0.1615) X_1793 = INVERSE MIMOSA TRANSFORM OF X(30) (0.7938, -0.0219) X_2341 = -ISOCONJUGATE OF X(1464) (0.8872, -0.0824) A B C X6 X13 X37 X101 X81 X226 X312 X645 X80 X1172 X9 X1793 X2341 (a, b, c) = (5, 6, 7) | AB = 1

X2341 (X2-ISOCONJUGATE OF X1464) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2341 = X_2-ISOCONJUGATE OF X_1464."""

        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_02341(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2341 = X_2-ISOCONJUGATE OF X_1464 on reference triangle ABC."""
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center"])
            X_2173 = eval_trilinear_point(model, A, B, C, 'a*(cos(A) - 2*cos(B)*cos(C))', ID="X_2173", classes=["center"])
            X_2341 = crosspoint(model, A, B, C, X_6, X_2173, ID="X_2341", classes=["selected", "target"])
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            central_line(model, X_6, X_13, 6, 13, incident=True)
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            central_line(model, X_37, X_101, 37, 101, incident=True)
            X_81 = eval_trilinear_point(model, A, B, C, '1/(b + c)', ID="X_81", 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_81, X_226, 81, 226, incident=True)
            return promote_point_to_top(model, X_2341)


        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_2341 on the given reference triangle."""
            model = create_model('X_2341 = X_2-ISOCONJUGATE OF X_1464')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02341(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-02341.json"))
            write_center_svg(
                model_acute,
                here / "x-02341.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )