X1892

ZOSMA TRANSFORM OF X990

< 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, 7 }: Central Line L(4, 7) { 65, 66 }: Central Line L(65, 66) { 25, 226 }: Central Line L(25, 226) { 57, 427 }: Central Line L(57, 427) { 208, 429 }: Central Line L(208, 429) { 225, 608 }: Central Line L(225, 608) 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_608 = ISOGONAL CONJUGATE OF X(345) (0.6361, 0.4975) X_7 = GERGONNE POINT (0.5903, 0.2769) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_66 = ISOGONAL CONJUGATE OF X(22) (0.5912, 1.0593) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_427 = COMPLEMENT OF X(22) (0.5990, 0.3610) X_208 = -CEVA CONJUGATE OF X(34) (0.6242, -0.2728) X_429 = EULER X(58)-5th-SUBSTITUTION POINT (0.6024, 0.3700) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_1892 = ZOSMA TRANSFORM OF X(990) (0.6032, 0.3467) A B C X4 X608 X7 X65 X66 X25 X226 X57 X427 X208 X429 X225 X1892 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1892 = ZOSMA TRANSFORM OF X_990."""

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


        def construct_x_01892(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1892 = ZOSMA TRANSFORM OF X_990 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_7 = gergonne_point_of(model, A, B, C, ID="X_7", classes=["center"])
            X_65 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C)', ID="X_65", classes=["center"])
            X_66 = eval_trilinear_point(model, A, B, C, 'b*c/(b**(4) + c**(4) - a**(4))', ID="X_66", classes=["center"])
            central_line(model, X_4, X_7, 4, 7)
            central_line(model, X_65, X_66, 65, 66)
            X_1892 = intersect_lines(model, X_4, X_7, X_65, X_66, ID="X_1892", classes=["selected", "target"])
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_226 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cos(B) + cos(C))', ID="X_226", classes=["center", "incident"])
            central_line(model, X_25, X_226, 25, 226, incident=True)
            return promote_point_to_top(model, X_1892)


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