X1581

ISOGONAL CONJUGATE OF X1580

< 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) { 10, 257 }: Central Line L(10, 257) { 37, 256 }: Central Line L(37, 256) { 65, 291 }: Central Line L(65, 291) { 171, 292 }: Central Line L(171, 292) { 82, 662 }: Central Line L(82, 662) { 733, 831 }: Central Line L(733, 831) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1580 = POINT ALUDRA (1.3094, 1.2033) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_257 = ISOGONAL CONJUGATE OF X(172) (0.5240, 0.1822) X_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_256 = 1st SHARYGIN POINT (0.5601, 0.2146) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_291 = 2nd SHARYGIN POINT (1.0249, 0.0364) X_171 = {X(2), X(31)}-HARMONIC CONJUGATE OF X(238) (0.5819, 0.2525) X_292 = -HIRST INVERSE OF X(291) (1.0127, 0.0417) X_82 = ISOGONAL CONJUGATE OF X(38) (0.5943, 0.2703) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_733 = EVEN (- 2, 2) CIRCUMCIRCLE POINT (1.0071, 0.0450) X_831 = o-(1, 3) CIRCUMCIRCLE POINT (0.1595, 0.4822) X_1581 = ISOGONAL CONJUGATE OF X(1580) (1.0304, 0.0330) A B C X1580 X10 X257 X37 X256 X65 X291 X171 X292 X82 X662 X733 X831 X1581 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1581 = ISOGONAL CONJUGATE OF X_1580."""

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


        def construct_x_01581(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1581 = ISOGONAL CONJUGATE OF X_1580 on reference triangle ABC."""
            X_1580 = eval_trilinear_point(model, A, B, C, 'a**(4) - b**(2)*c**(2)', ID="X_1580", classes=["center"])
            X_1581 = isogonal_conjugate(model, A, B, C, X_1580, ID="X_1581", classes=["selected", "target"])
            X_10 = spieker_center_of(model, A, B, C, ID="X_10", classes=["center", "incident"])
            X_257 = eval_trilinear_point(model, A, B, C, '1/(a**(3) + a*b*c)', ID="X_257", classes=["center", "incident"])
            central_line(model, X_10, X_257, 10, 257, incident=True)
            X_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_256 = eval_trilinear_point(model, A, B, C, '1/(a**(2) + b*c)', ID="X_256", classes=["center", "incident"])
            central_line(model, X_37, X_256, 37, 256, incident=True)
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center", "incident"])
            X_291 = eval_trilinear_point(model, A, B, C, '1/(a**(2) - b*c)', ID="X_291", classes=["center", "incident"])
            central_line(model, X_65, X_291, 65, 291, incident=True)
            return promote_point_to_top(model, X_1581)


        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_1581 on the given reference triangle."""
            model = create_model('X_1581 = ISOGONAL CONJUGATE OF X_1580')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01581(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-01581.json"))
            write_center_svg(
                model_acute,
                here / "x-01581.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )