X3381

SEC(A - π/5) POINT

X3381 and related points occupy Bernard Gibert’s Table 38. See the note at X3364.
< 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) { 1140, 3368 }: Central Line L(1140, 3368) { 1139, 3379 }: Central Line L(1139, 3379) { 3369, 3370 }: Central Line L(3369, 3370) { 5, 3382 }: Central Line L(5, 3382) { 2, 3393 }: Central Line L(2, 3393) { 4, 3394 }: Central Line L(4, 3394) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3396 = SIN(A + 2π/5) POINT (0.5378, 0.1645) X_3382 = CSC(A - π/5) POINT (0.3759, 0.1017) X_1140 = INNER PENTAGON POINT (0.5248, 1.3312) X_3368 = COS(A - 2π/5) POINT (0.5852, 0.2428) X_1139 = OUTER PENTAGON POINT (0.5970, 0.3096) X_3379 = COS(A - π/5) POINT (0.5576, 0.1972) X_3369 = SIN(A - 2π/5) POINT (0.3449, -0.1541) X_3370 = SEC(A - 2π/5) POINT (0.5569, 0.2237) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_2 = CENTROID (0.5374, 0.2000) X_3393 = COS(A + π/5) POINT (0.8782, 0.7267) X_4 = ORTHOCENTER (0.6122, 0.3958) X_3394 = SIN(A + π/5) POINT (0.5720, 0.2210) X_3381 = SEC(A - π/5) POINT (0.5836, 0.2714) A B C X3396 X3382 X1140 X3368 X1139 X3379 X3369 X3370 X5 X2 X3393 X4 X3394 X3381 (a, b, c) = (5, 6, 7) | AB = 1

X3381 (SEC(A - π/5) POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3381 = SEC(A - π/5) POINT."""

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


        def construct_x_03381(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3381 = SEC(A - π/5) POINT on reference triangle ABC."""
            X_3379 = eval_trilinear_point(model, A, B, C, '(cos(A -  pi  /5))', ID="X_3379", classes=["center"])
            X_3381 = isogonal_conjugate(model, A, B, C, X_3379, ID="X_3381", classes=["selected", "target"])
            X_1140 = eval_trilinear_point(model, A, B, C, '(csc(A))/(cot(A) - cot(2*pi/5))', ID="X_1140", classes=["center", "incident"])
            X_3368 = eval_trilinear_point(model, A, B, C, '(cos(A - 2*pi  /5))', ID="X_3368", classes=["center", "incident"])
            central_line(model, X_1140, X_3368, 1140, 3368, incident=True)
            X_1139 = eval_trilinear_point(model, A, B, C, '(csc(A))/(cot(A) + cot(2*pi/5))', ID="X_1139", classes=["center", "incident"])
            central_line(model, X_1139, X_3379, 1139, 3379, incident=True)
            X_3369 = eval_trilinear_point(model, A, B, C, '(sin(A - 2*pi  /5))', ID="X_3369", classes=["center", "incident"])
            X_3370 = eval_trilinear_point(model, A, B, C, '(sec(A - 2*pi  /5))', ID="X_3370", classes=["center", "incident"])
            central_line(model, X_3369, X_3370, 3369, 3370, incident=True)
            return promote_point_to_top(model, X_3381)


        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_3381 on the given reference triangle."""
            model = create_model('X_3381 = SEC(A - π/5) POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03381(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-03381.json"))
            write_center_svg(
                model_acute,
                here / "x-03381.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )