X3512

ISOGONAL CONJUGATE OF X3509

< 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) { 335, 385 }: Central Line L(335, 385) { 55, 846 }: Central Line L(55, 846) { 19, 1423 }: Central Line L(19, 1423) { 6, 2114 }: Central Line L(6, 2114) { 1086, 2160 }: Central Line L(1086, 2160) { 1, 3506 }: Central Line L(1, 3506) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3509 = INTERSECTION OF LINES X(1)X(32) AND X(2)X(7) (5.8622, 7.9483) X_335 = ISOTOMIC CONJUGATE OF X(239) (1.0387, 0.0318) X_385 = -HIRST INVERSE OF X(6) (2.2863, 2.0795) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_19 = CLAWSON POINT (0.6246, 0.4244) X_1423 = -BETH CONJUGATE OF X(192) (0.6537, 0.3692) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_2114 = POINT KEPLER V (0.1793, 0.8022) X_1086 = CENTER OF HYPERBOLA {{A,B,C,X(2),X(7)|} (0.7687, 0.1000) X_2160 = -ISOCONJUGATE OF X(35) (0.6185, 0.3356) X_1 = INCENTER (0.5714, 0.2333) X_3506 = INTERSECTION OF LINES X(2)X(98) AND X(32)X(694) (0.0474, 0.7964) X_3512 = ISOGONAL CONJUGATE OF X(3509) (0.9280, -0.1499) A B C X3509 X335 X385 X55 X846 X19 X1423 X6 X2114 X1086 X2160 X1 X3506 X3512 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3512 = ISOGONAL CONJUGATE OF X_3509."""

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


        def construct_x_03512(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3512 = ISOGONAL CONJUGATE OF X_3509 on reference triangle ABC."""
            X_3512 = eval_trilinear_point(model, A, B, C, '(1/(a**(3) - b**(3) - c**(3) + a*b*c))', ID="X_3512", classes=["selected", "target"])
            X_335 = eval_trilinear_point(model, A, B, C, 'b*c/(a**(2) - b*c)', ID="X_335", classes=["center", "incident"])
            X_385 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(4) - b**(2)*c**(2))', ID="X_385", classes=["center", "incident"])
            central_line(model, X_335, X_385, 335, 385, incident=True)
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            X_846 = eval_trilinear_point(model, A, B, C, '(- a**(2) + b**(2) + c**(2) + b*c + c*a + a*b)', ID="X_846", classes=["center", "incident"])
            central_line(model, X_55, X_846, 55, 846, incident=True)
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_1423 = eval_trilinear_point(model, A, B, C, '((a*b + a*c - b*c)/(b + c - a))', ID="X_1423", classes=["center", "incident"])
            central_line(model, X_19, X_1423, 19, 1423, incident=True)
            return promote_point_to_top(model, X_3512)


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