X947

ISOGONAL CONJUGATE OF X946

< 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) { 40, 77 }: Central Line L(40, 77) { 73, 102 }: Central Line L(73, 102) { 48, 282 }: Central Line L(48, 282) { 29, 515 }: Central Line L(29, 515) { 219, 572 }: Central Line L(219, 572) { 581, 1036 }: Central Line L(581, 1036) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_40 = BEVAN POINT (0.4286, -0.0292) X_77 = ISOGONAL CONJUGATE OF X(33) (0.5270, 0.1305) X_73 = CROSSPOINT OF INCENTER AND CIRCUMCENTER (0.5487, 0.1428) X_102 = Λ(INCENTER, ORTHOCENTER) (0.6364, -0.3897) X_282 = -CROSS CONJUGATE OF X(9) (0.6199, 0.7507) X_29 = CEVAPOINT OF INCENTER AND ORTHOCENTER (0.5903, 0.3384) X_515 = ISOGONAL CONJUGATE OF X(102) (0.6804, 0.7691) X_219 = -CEVA CONJUGATE OF X(55) (0.4277, 0.0625) X_572 = ORTHOGONAL OF X(58) (7.2953, -0.6907) X_581 = ORTHOHARMONIC OF X(284) (0.5657, 0.2106) X_1036 = ISOGONAL CONJUGATE OF X(388) (0.5632, 0.2044) X_947 = ISOGONAL CONJUGATE OF X(946) (0.5457, 0.1609) A B C X48 X55 X40 X77 X73 X102 X282 X29 X515 X219 X572 X581 X1036 X947 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_947 = ISOGONAL CONJUGATE OF X_946."""

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


        def construct_x_00947(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_947 = ISOGONAL CONJUGATE OF X_946 on reference triangle ABC."""
            X_946 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(3)*(b + c) + (b - c)**(2)*(a**(2) - a*b - a*c - b**(2) - c**(2) - 2*b*c))', ID="X_946", classes=["center"])
            X_947 = isogonal_conjugate(model, A, B, C, X_946, ID="X_947", classes=["selected", "target"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            X_77 = eval_trilinear_point(model, A, B, C, '1/(1 + sec(A))', ID="X_77", classes=["center", "incident"])
            central_line(model, X_40, X_77, 40, 77, incident=True)
            X_73 = eval_trilinear_point(model, A, B, C, 'sec(B) + sec(C)', ID="X_73", classes=["center", "incident"])
            X_102 = eval_trilinear_point(model, A, B, C, '1/(sin(B)*(sec(A) - sec(B)) + sin(C)*(sec(A) - sec(C)))', ID="X_102", classes=["center", "incident"])
            central_line(model, X_73, X_102, 73, 102, incident=True)
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            X_282 = eval_trilinear_point(model, A, B, C, '(cot(A/2))/(-1 - cos(A) + cos(B) + cos(C))', ID="X_282", classes=["center", "incident"])
            central_line(model, X_48, X_282, 48, 282, incident=True)
            return promote_point_to_top(model, X_947)


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