X1888

ZOSMA TRANSFORM OF X950

< 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, 44 }: Central Line L(19, 44) { 4, 65 }: Central Line L(4, 65) { 34, 55 }: Central Line L(34, 55) { 28, 1155 }: Central Line L(28, 1155) { 33, 1426 }: Central Line L(33, 1426) { 71, 1841 }: Central Line L(71, 1841) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_19 = CLAWSON POINT (0.6246, 0.4244) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_4 = ORTHOCENTER (0.6122, 0.3958) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_34 = -BETH CONJUGATE OF X(4) (0.6332, 0.4792) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_28 = CEVAPOINT OF X(19) AND X(25) (0.6285, 0.4382) X_1155 = SCHRÖDER POINT (1.7143, 2.3328) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_1426 = -BETH CONJUGATE OF X(225) (0.6336, 0.5112) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_1841 = ZOSMA TRANSFORM OF X(71) (0.6283, 0.4477) X_1888 = ZOSMA TRANSFORM OF X(950) (0.6136, 0.4122) A B C X19 X44 X4 X65 X34 X55 X28 X1155 X33 X1426 X71 X1841 X1888 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1888 = ZOSMA TRANSFORM OF X_950."""

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


        def construct_x_01888(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1888 = ZOSMA TRANSFORM OF X_950 on reference triangle ABC."""
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center"])
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center"])
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center"])
            central_line(model, X_19, X_44, 19, 44)
            central_line(model, X_4, X_65, 4, 65)
            X_1888 = intersect_lines(model, X_19, X_44, X_4, X_65, ID="X_1888", classes=["selected", "target"])
            X_34 = eval_trilinear_point(model, A, B, C, '1 - sec(A)', ID="X_34", classes=["center", "incident"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center", "incident"])
            central_line(model, X_34, X_55, 34, 55, incident=True)
            return promote_point_to_top(model, X_1888)


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