X2525

RADICAL CENTER OF {NINE-POINT, BROCARD, (X4,2R)} CIRCLES

< 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) { 441, 525 }: Central Line L(441, 525) { 669, 690 }: Central Line L(669, 690) { 826, 2474 }: Central Line L(826, 2474) { 523, 2526 }: Central Line L(523, 2526) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_305 = ISOTOMIC CONJUGATE OF X(25) (0.3258, 0.0397) X_125 = CENTER OF JERABEK HYPERBOLA (0.6803, 0.0260) X_441 = COMPLEMENT OF X(297) (0.3841, -0.2011) X_525 = ISOGONAL CONJUGATE OF X(112) (-0.0468, 0.2556) X_669 = CROSSDIFFERENCE OF X(2) AND X(39) (-4.3514, 4.6163) X_690 = CROSSDIFFERENCE OF LINE X(6) AND X(110) (0.0840, -0.1726) X_826 = ODD (0, 4) INFINITY POINT (1.1003, 0.0340) X_2474 = RADICAL CENTER OF {BROCARD, 2nd LEMOINE, (X(4),2R)} CIRCLES (6.9649, -4.0371) X_523 = ISOGONAL CONJUGATE OF X(110) (1.0856, -0.0096) X_2526 = RADICAL CENTER OF {NINE-POINT, APOLLONIUS, (X(4),2R)} CIRCLES (37.2857, -17.0298) X_2525 = RADICAL CENTER OF {NINE-POINT, BROCARD, (X(4),2R)} CIRCLES (-9.1140, 0.7037) A B C X305 X125 X441 X525 X669 X690 X826 X2474 X523 X2526 X2525 (a, b, c) = (5, 6, 7) | AB = 1

X2525 (RADICAL CENTER OF {NINE-POINT, BROCARD, (X4,2R)} CIRCLES) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_2525 = RADICAL CENTER OF {NINE-POINT, BROCARD, (X_4,2R)} CIRCLES."""

        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,
            ceva_conjugate,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            point_from_barycentrics,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_02525(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2525 = RADICAL CENTER OF {NINE-POINT, BROCARD, (X_4,2R)} CIRCLES on reference triangle ABC."""
            X_305 = eval_trilinear_point(model, A, B, C, 'b**(4)*c**(4)*cos(A)', ID="X_305", classes=["center"])
            X_125 = eval_trilinear_point(model, A, B, C, 'cos(A)*(sin(B - C))**(2)', ID="X_125", classes=["center"])
            X_2525 = ceva_conjugate(model, A, B, C, X_305, X_125, ID="X_2525", classes=["selected", "target"])
            X_441 = point_from_barycentrics(model, A, B, C, 0.74590002, 0.58940921, -0.33530923, ID="X_441", classes=["center", "incident"])
            X_525 = eval_trilinear_point(model, A, B, C, '(b*cos(B) - c*cos(C))/a', ID="X_525", classes=["center", "incident"])
            central_line(model, X_441, X_525, 441, 525, incident=True)
            X_669 = eval_trilinear_point(model, A, B, C, 'a**(3)*(b**(2) - c**(2))', ID="X_669", classes=["center", "incident"])
            X_690 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) - c**(2))*(2*a**(2) - b**(2) - c**(2))', ID="X_690", classes=["center", "incident"])
            central_line(model, X_669, X_690, 669, 690, incident=True)
            X_826 = eval_trilinear_point(model, A, B, C, 'a **(-1)*(b**(4) - c**(4)) + a**(3)*(b**(0) - c**(0))', ID="X_826", classes=["center", "incident"])
            X_2474 = eval_trilinear_point(model, A, B, C, '(a*(b**(4) - c**(4))*(a**(4) + b**(4) + c**(4) + 2*a**(2)*b**(2) + 2*a**(2)*c**(2) - 2*b**(2)*c**(2)))', ID="X_2474", classes=["center", "incident"])
            central_line(model, X_826, X_2474, 826, 2474, incident=True)
            return promote_point_to_top(model, X_2525)


        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_2525 on the given reference triangle."""
            model = create_model('X_2525 = RADICAL CENTER OF {NINE-POINT, BROCARD, (X_4,2R)} CIRCLES')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_02525(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-02525.json"))
            write_center_svg(
                model_acute,
                here / "x-02525.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )