X1879

ZOSMA TRANSFORM OF X563

< 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) { 6, 13 }: Central Line L(6, 13) { 4, 96 }: Central Line L(4, 96) { 53, 235 }: Central Line L(53, 235) { 5, 570 }: Central Line L(5, 570) { 230, 428 }: Central Line L(230, 428) { 233, 566 }: Central Line L(233, 566) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_4 = ORTHOCENTER (0.6122, 0.3958) X_96 = ISOGONAL CONJUGATE OF X(52) (-0.0943, -0.0197) X_53 = SYMMEDIAN POINT OF ORTHIC TRIANGLE (0.6164, 0.4390) X_235 = -CEVA CONJUGATE OF X(185) (0.6375, 0.4618) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_570 = ORTHOGONAL OF X(52) (0.5652, 0.2098) X_230 = -CEVA CONJUGATE OF X(114) (0.9746, 0.6698) X_428 = EULER X(38)-5th-SUBSTITUTION POINT (0.6180, 0.4109) X_233 = -CEVA CONJUGATE OF X(140) (0.5475, 0.2218) X_566 = HARMONIC OF X(50) (0.5516, 0.1872) X_1879 = ZOSMA TRANSFORM OF X(563) (0.5328, 0.3490) A B C X6 X13 X4 X96 X53 X235 X5 X570 X230 X428 X233 X566 X1879 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1879 = ZOSMA TRANSFORM OF X_563."""

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


        def construct_x_01879(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1879 = ZOSMA TRANSFORM OF X_563 on reference triangle ABC."""
            X_1879 = eval_trilinear_point(model, A, B, C, 'sin(A)*cos(2*B - 2*C)', ID="X_1879", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            central_line(model, X_6, X_13, 6, 13, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_96 = eval_trilinear_point(model, A, B, C, 'sec(2*A)*sec(B - C)', ID="X_96", classes=["center", "incident"])
            central_line(model, X_4, X_96, 4, 96, incident=True)
            X_53 = eval_trilinear_point(model, A, B, C, 'tan(A)*cos(B - C)', ID="X_53", classes=["center", "incident"])
            X_235 = eval_trilinear_point(model, A, B, C, 'sec(A) - cos(B - C)', ID="X_235", classes=["center", "incident"])
            central_line(model, X_53, X_235, 53, 235, incident=True)
            return promote_point_to_top(model, X_1879)


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