X1900

ZOSMA TRANSFORM OF X1125

< 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) { 4, 8 }: Fuhrmann Line { 25, 35 }: Central Line L(25, 35) { 19, 45 }: Central Line L(19, 45) { 225, 1876 }: Central Line L(225, 1876) { 407, 1785 }: Central Line L(407, 1785) { 429, 1861 }: Central Line L(429, 1861) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_4 = ORTHOCENTER (0.6122, 0.3958) X_8 = NAGEL POINT (0.4694, 0.1333) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_35 = {X(1),X(3)}-HARMONIC CONJUGATE OF X(36) (0.5373, 0.1706) X_19 = CLAWSON POINT (0.6246, 0.4244) X_45 = -BETH CONJUGATE OF X(1) (0.5418, 0.1981) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_1876 = ZOSMA TRANSFORM OF X(516) (0.6639, 0.6754) X_407 = CROSSPOINT OF X(4) AND X(225) (0.6211, 0.4189) X_1785 = MIMOSA TRANSFORM OF X(1295) (0.7297, 0.8635) X_429 = EULER X(58)-5th-SUBSTITUTION POINT (0.6024, 0.3700) X_1861 = ZOSMA TRANSFORM OF X(238) (0.8061, 0.8443) X_1900 = ZOSMA TRANSFORM OF X(1125) (0.6180, 0.4064) A B C X4 X8 X25 X35 X19 X45 X225 X1876 X407 X1785 X429 X1861 X1900 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1900 = ZOSMA TRANSFORM OF X_1125."""

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


        def construct_x_01900(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1900 = ZOSMA TRANSFORM OF X_1125 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center"])
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center"])
            X_35 = eval_trilinear_point(model, A, B, C, '1 + 2*cos(A)', ID="X_35", classes=["center"])
            central_line(model, X_4, X_8, 4, 8)
            central_line(model, X_25, X_35, 25, 35)
            X_1900 = intersect_lines(model, X_4, X_8, X_25, X_35, ID="X_1900", classes=["selected", "target"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_45 = eval_trilinear_point(model, A, B, C, '2*b + 2*c - a', ID="X_45", classes=["center", "incident"])
            central_line(model, X_19, X_45, 19, 45, incident=True)
            return promote_point_to_top(model, X_1900)


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