X2241

X2-ISOCONJUGATE OF X749

< 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, 32 }: Central Line L(1, 32) { 39, 55 }: Central Line L(39, 55) { 56, 187 }: Central Line L(56, 187) { 99, 330 }: Central Line L(99, 330) { 6, 574 }: Brocard Axis { 230, 496 }: Central Line L(230, 496) 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_32 = 3rd POWER POINT (0.6400, 0.3332) X_39 = BROCARD MIDPOINT (0.5778, 0.2305) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_99 = STEINER POINT (0.1109, 0.4322) X_330 = ISOTOMIC CONJUGATE OF X(192) (0.4364, 0.1391) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_574 = HARMONIC OF X(187) (0.5539, 0.1910) X_230 = -CEVA CONJUGATE OF X(114) (0.9746, 0.6698) X_496 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(495) (0.5843, 0.2201) X_2241 = -ISOCONJUGATE OF X(749) (0.4799, 0.0999) A B C X1 X32 X39 X55 X56 X187 X99 X330 X6 X574 X230 X496 X2241 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2241 = X_2-ISOCONJUGATE OF X_749."""

        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_02241(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2241 = X_2-ISOCONJUGATE OF X_749 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center"])
            X_39 = eval_trilinear_point(model, A, B, C, 'a*(b**(2) + c**(2))', ID="X_39", classes=["center"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center"])
            central_line(model, X_1, X_32, 1, 32)
            central_line(model, X_39, X_55, 39, 55)
            X_2241 = intersect_lines(model, X_1, X_32, X_39, X_55, ID="X_2241", classes=["selected", "target"])
            X_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center", "incident"])
            X_187 = eval_trilinear_point(model, A, B, C, 'a*(2*a**(2) - b**(2) - c**(2))', ID="X_187", classes=["center", "incident"])
            central_line(model, X_56, X_187, 56, 187, incident=True)
            return promote_point_to_top(model, X_2241)


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