X1825

ZOSMA TRANSFORM OF X5

< 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) { 19, 41 }: Central Line L(19, 41) { 33, 40 }: Central Line L(33, 40) { 4, 80 }: Central Line L(4, 80) { 35, 186 }: Central Line L(35, 186) { 65, 225 }: Central Line L(65, 225) { 250, 270 }: Central Line L(250, 270) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1789 = INVERSE MIMOSA TRANSFORM OF X(5) (0.4896, 0.1064) X_19 = CLAWSON POINT (0.6246, 0.4244) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_40 = BEVAN POINT (0.4286, -0.0292) X_4 = ORTHOCENTER (0.6122, 0.3958) X_80 = REFLECTION OF INCENTER IN FEUERBACH POINT (0.8980, -0.1000) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_186 = INVERSE-IN-CIRCUMCIRCLE OF X(4) (0.7957, 0.8758) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_250 = ISOGONAL CONJUGATE OF X(125) (0.5892, 0.5347) X_270 = ISOGONAL CONJUGATE OF X(201) (0.6168, 0.3881) X_1825 = ZOSMA TRANSFORM OF X(5) (0.6169, 0.3877) A B C X1789 X19 X41 X33 X40 X4 X80 X35 X186 X65 X225 X250 X270 X1825 (a, b, c) = (5, 6, 7) | AB = 1

X1825 (ZOSMA TRANSFORM OF X5) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1825 = ZOSMA TRANSFORM OF X_5."""

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


        def construct_x_01825(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1825 = ZOSMA TRANSFORM OF X_5 on reference triangle ABC."""
            X_1789 = point_from_barycentrics(model, A, B, C, 0.44157394, 0.38099362, 0.17743244, ID="X_1789", classes=["center"])
            X_1825 = isogonal_conjugate(model, A, B, C, X_1789, ID="X_1825", classes=["selected", "target"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center", "incident"])
            central_line(model, X_19, X_41, 19, 41, incident=True)
            X_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center", "incident"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            central_line(model, X_33, X_40, 33, 40, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_80 = eval_trilinear_point(model, A, B, C, '1/(1 - 2*cos(A))', ID="X_80", classes=["center", "incident"])
            central_line(model, X_4, X_80, 4, 80, incident=True)
            return promote_point_to_top(model, X_1825)


        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_1825 on the given reference triangle."""
            model = create_model('X_1825 = ZOSMA TRANSFORM OF X_5')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01825(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-01825.json"))
            write_center_svg(
                model_acute,
                here / "x-01825.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )