X2257

X2-ISOCONJUGATE OF X939

< 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, 6 }: Incenter–Symmedian Line { 19, 57 }: Central Line L(19, 57) { 58, 84 }: Central Line L(58, 84) { 3, 380 }: Central Line L(3, 380) { 40, 387 }: Central Line L(40, 387) { 56, 610 }: Central Line L(56, 610) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_19 = CLAWSON POINT (0.6246, 0.4244) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_58 = ISOGONAL CONJUGATE OF X(10) (0.6107, 0.2850) X_84 = ISOGONAL CONJUGATE OF X(40) (0.6071, 0.6816) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_380 = INTERSECTION OF LINES X(1)X(19) AND X(9)X(55) (0.5631, 0.2035) X_40 = BEVAN POINT (0.4286, -0.0292) X_387 = INTERSECTION OF LINES X(1,2) AND X(4,6) (0.5994, 0.2607) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_610 = -CEVA CONJUGATE OF X(1) (0.4310, -0.2713) X_2257 = -ISOCONJUGATE OF X(939) (0.6108, 0.2800) A B C X1 X6 X19 X57 X58 X84 X3 X380 X40 X387 X56 X610 X2257 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2257 = X_2-ISOCONJUGATE OF X_939."""

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


        def construct_x_02257(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2257 = X_2-ISOCONJUGATE OF X_939 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center"])
            central_line(model, X_1, X_6, 1, 6)
            central_line(model, X_19, X_57, 19, 57)
            X_2257 = intersect_lines(model, X_1, X_6, X_19, X_57, ID="X_2257", classes=["selected", "target"])
            X_58 = eval_trilinear_point(model, A, B, C, 'a/(b + c)', ID="X_58", classes=["center", "incident"])
            X_84 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C) - cos(A) - 1)', ID="X_84", classes=["center", "incident"])
            central_line(model, X_58, X_84, 58, 84, incident=True)
            return promote_point_to_top(model, X_2257)


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