X2242

X2-ISOCONJUGATE OF X751

< 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, 56 }: Central Line L(39, 56) { 6, 101 }: Central Line L(6, 101) { 55, 187 }: Central Line L(55, 187) { 99, 192 }: Central Line L(99, 192) { 36, 574 }: Central Line L(36, 574) 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_56 = EXSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.6316, 0.3438) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_99 = STEINER POINT (0.1109, 0.4322) X_192 = -CEVA CONJUGATE OF X(2) (CONGRUENT PARALLELIANS POINT) (0.6147, 0.2635) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_574 = HARMONIC OF X(187) (0.5539, 0.1910) X_2242 = -ISOCONJUGATE OF X(751) (0.5964, 0.2696) A B C X1 X32 X39 X56 X6 X101 X55 X187 X99 X192 X36 X574 X2242 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_2242 = X_2-ISOCONJUGATE OF X_751."""

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


        def construct_x_02242(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_2242 = X_2-ISOCONJUGATE OF X_751 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_56 = eval_trilinear_point(model, A, B, C, 'a/(b + c - a)', ID="X_56", classes=["center"])
            central_line(model, X_1, X_32, 1, 32)
            central_line(model, X_39, X_56, 39, 56)
            X_2242 = intersect_lines(model, X_1, X_32, X_39, X_56, ID="X_2242", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            central_line(model, X_6, X_101, 6, 101, incident=True)
            return promote_point_to_top(model, X_2242)


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