X1856

ZOSMA TRANSFORM OF X222

< 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, 57 }: Central Line L(4, 57) { 33, 42 }: Central Line L(33, 42) { 225, 235 }: Central Line L(225, 235) { 11, 1427 }: Central Line L(11, 1427) { 55, 1855 }: Central Line L(55, 1855) { 430, 1827 }: Central Line L(430, 1827) 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_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_33 = PERSPECTOR OF THE ORTHIC AND INTANGENTS TRIANGLES (0.6019, 0.3546) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_225 = -CEVA CONJUGATE OF X(65) (0.6246, 0.4451) X_235 = -CEVA CONJUGATE OF X(185) (0.6375, 0.4618) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_1427 = -BETH CONJUGATE OF X(226) (0.6319, 0.3688) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_1855 = ZOSMA TRANSFORM OF X(218) (0.5885, 0.3407) X_430 = EULER X(81)-5th-SUBSTITUTION POINT (0.6091, 0.3875) X_1827 = ZOSMA TRANSFORM OF X(7) (0.6082, 0.3740) X_1856 = ZOSMA TRANSFORM OF X(222) (0.6117, 0.4282) A B C X4 X57 X33 X42 X225 X235 X11 X1427 X55 X1855 X430 X1827 X1856 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_1856 = ZOSMA TRANSFORM OF X_222."""

        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_01856(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1856 = ZOSMA TRANSFORM OF X_222 on reference triangle ABC."""
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center"])
            X_57 = eval_trilinear_point(model, A, B, C, '1/(b + c - a)', ID="X_57", classes=["center"])
            X_33 = eval_trilinear_point(model, A, B, C, '1 + sec(A)', ID="X_33", classes=["center"])
            X_42 = eval_trilinear_point(model, A, B, C, 'a*(b + c)', ID="X_42", classes=["center"])
            central_line(model, X_4, X_57, 4, 57)
            central_line(model, X_33, X_42, 33, 42)
            X_1856 = intersect_lines(model, X_4, X_57, X_33, X_42, ID="X_1856", classes=["selected", "target"])
            X_225 = eval_trilinear_point(model, A, B, C, '(sec(A))*(cos(B) + cos(C))', ID="X_225", 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_225, X_235, 225, 235, incident=True)
            return promote_point_to_top(model, X_1856)


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