X2234

X2-ISOCONJUGATE OF X729

X2234 = crossdifference of every pair of points on line X1X798
< 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, 75 }: Central Line L(1, 75) { 44, 513 }: Central Line L(44, 513) { 662, 922 }: Central Line L(662, 922) { 872, 894 }: Central Line L(872, 894) { 897, 1581 }: Central Line L(897, 1581) { 560, 1958 }: Central Line L(560, 1958) 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_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_922 = POINT ALBALI (0.9307, 0.9656) X_872 = INTERSECTION OF LINES X(37)X(42) AND X(43)X(75) (0.6029, 0.2656) X_894 = ISOGONAL CONJUGATE OF X(893) (0.5501, 0.2184) X_897 = ISOGONAL CONJUGATE OF X(896) (0.9765, -0.0384) X_1581 = ISOGONAL CONJUGATE OF X(1580) (1.0304, 0.0330) X_560 = 4th POWER POINT (0.6520, 0.3639) X_1958 = CROSSSUM OF PU(23) (0.4653, 0.2026) X_2234 = -ISOCONJUGATE OF X(729) (2.4613, 1.9262) A B C X1 X75 X44 X513 X662 X922 X872 X894 X897 X1581 X560 X1958 X2234 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2234 = X_2-ISOCONJUGATE OF X_729."""

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


        def construct_x_02234(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2234 = X_2-ISOCONJUGATE OF X_729 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_75 = eval_trilinear_point(model, A, B, C, '1/a**(2)', ID="X_75", classes=["center"])
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center"])
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center"])
            central_line(model, X_1, X_75, 1, 75)
            central_line(model, X_44, X_513, 44, 513)
            X_2234 = intersect_lines(model, X_1, X_75, X_44, X_513, ID="X_2234", classes=["selected", "target"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center", "incident"])
            X_922 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b**(2) + c**(2) - 2*a**(2))', ID="X_922", classes=["center", "incident"])
            central_line(model, X_662, X_922, 662, 922, incident=True)
            return promote_point_to_top(model, X_2234)


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