X1231

ISOTOMIC CONJUGATE OF X1172

< 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) { 7, 8 }: Gergonne–Nagel Line { 76, 331 }: Central Line L(76, 331) { 201, 307 }: Central Line L(201, 307) { 304, 345 }: Central Line L(304, 345) { 321, 349 }: Central Line L(321, 349) { 664, 1043 }: Central Line L(664, 1043) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1172 = 1st SARAGOSSA POINT OF X(48) (0.6100, 0.3717) X_7 = GERGONNE POINT (0.5903, 0.2769) X_8 = NAGEL POINT (0.4694, 0.1333) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_331 = ISOTOMIC CONJUGATE OF X(219) (0.6062, 0.4046) X_201 = -CEVA CONJUGATE OF X(12) (0.4897, 0.1062) X_307 = ISOTOMIC CONJUGATE OF X(29) (0.4659, 0.0959) X_304 = ISOTOMIC CONJUGATE OF X(19) (0.3683, 0.0513) X_345 = ISOTOMIC CONJUGATE OF X(278) (0.3405, 0.0381) X_321 = ISOTOMIC CONJUGATE OF X(81) (0.4800, 0.1527) X_349 = ISOTOMIC CONJUGATE OF X(284) (0.5089, 0.1906) X_664 = TRILINEAR POLE OF LINE X(2)X(7) (0.2391, 0.5142) X_1043 = CEVAPOINT OF X(1) AND X(20) (0.4149, 0.0930) X_1231 = ISOTOMIC CONJUGATE OF X(1172) (0.4217, 0.0767) A B C X1172 X7 X8 X76 X331 X201 X307 X304 X345 X321 X349 X664 X1043 X1231 (a, b, c) = (5, 6, 7) | AB = 1

X1231 (ISOTOMIC CONJUGATE OF X1172) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1231 = ISOTOMIC CONJUGATE OF X_1172."""

        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,
            gergonne_point_of,
            intersect_lines,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_01231(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1231 = ISOTOMIC CONJUGATE OF X_1172 on reference triangle ABC."""
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center"])
            X_331 = eval_trilinear_point(model, A, B, C, '(sec(A/2))**(2)*csc(2*A)', ID="X_331", classes=["center"])
            central_line(model, X_7, X_8, 7, 8)
            central_line(model, X_76, X_331, 76, 331)
            X_1231 = intersect_lines(model, X_7, X_8, X_76, X_331, ID="X_1231", classes=["selected", "target"])
            X_201 = eval_trilinear_point(model, A, B, C, '(cos(A))*(1 + cos(B - C))', ID="X_201", classes=["center", "incident"])
            X_307 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)*(b + c)*(cos(A))/(b + c - a)', ID="X_307", classes=["center", "incident"])
            central_line(model, X_201, X_307, 201, 307, incident=True)
            return promote_point_to_top(model, X_1231)


        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_1231 on the given reference triangle."""
            model = create_model('X_1231 = ISOTOMIC CONJUGATE OF X_1172')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01231(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-01231.json"))
            write_center_svg(
                model_acute,
                here / "x-01231.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )