X1178

1st SARAGOSSA POINT OF X82

< 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) { 21, 238 }: Central Line L(21, 238) { 6, 694 }: Central Line L(6, 694) { 82, 662 }: Central Line L(82, 662) { 284, 893 }: Central Line L(284, 893) { 765, 872 }: Central Line L(765, 872) { 741, 985 }: Central Line L(741, 985) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1215 = ISOGONAL CONJUGATE OF X(1178) (0.5340, 0.2011) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_694 = ISOGONAL CONJUGATE OF X(385) (1.0179, 0.0378) X_82 = ISOGONAL CONJUGATE OF X(38) (0.5943, 0.2703) X_662 = TRILINEAR POLE OF LINE X(1)X(21) (0.1811, 0.4951) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_893 = -CROSS CONJUGATE OF X(292) (0.5910, 0.2480) X_765 = CEVAPOINT OF X(1) AND X(100) (0.4286, 0.3110) X_872 = INTERSECTION OF LINES X(37)X(42) AND X(43)X(75) (0.6029, 0.2656) X_741 = EVEN (- 1, 1) CIRCUMCIRCLE POINT (1.0071, 0.0451) X_985 = ISOGONAL CONJUGATE OF X(984) (0.5961, 0.2693) X_1178 = 1st SARAGOSSA POINT OF X(82) (0.6029, 0.2656) A B C X1215 X21 X238 X6 X694 X82 X662 X284 X893 X765 X872 X741 X985 X1178 (a, b, c) = (5, 6, 7) | AB = 1

X1178 (1st SARAGOSSA POINT OF X82) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1178 = 1st SARAGOSSA POINT OF X_82."""

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


        def construct_x_01178(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1178 = 1st SARAGOSSA POINT OF X_82 on reference triangle ABC."""
            X_1178 = eval_trilinear_point(model, A, B, C, '(a/((b + c)*(a**(2) + b*c)))', ID="X_1178", classes=["selected", "target"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            central_line(model, X_21, X_238, 21, 238, incident=True)
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_694 = eval_trilinear_point(model, A, B, C, 'a/(a**(4) - b**(2)*c**(2))', ID="X_694", classes=["center", "incident"])
            central_line(model, X_6, X_694, 6, 694, incident=True)
            X_82 = eval_trilinear_point(model, A, B, C, '1/(b**(2) + c**(2))', ID="X_82", classes=["center", "incident"])
            X_662 = eval_trilinear_point(model, A, B, C, '1/(cot(B) - cot(C))', ID="X_662", classes=["center", "incident"])
            central_line(model, X_82, X_662, 82, 662, incident=True)
            return promote_point_to_top(model, X_1178)


        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_1178 on the given reference triangle."""
            model = create_model('X_1178 = 1st SARAGOSSA POINT OF X_82')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01178(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-01178.json"))
            write_center_svg(
                model_acute,
                here / "x-01178.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )