X896

INTERSECTION OF LINES X1X_21 AND X9X_750

X896 = crosssum of X1 and X896
< 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) { 1, 21 }: Central Line L(1, 21) { 162, 240 }: Central Line L(162, 240) { 238, 244 }: Central Line L(238, 244) { 44, 513 }: Central Line L(44, 513) { 9, 750 }: Central Line L(9, 750) { 57, 748 }: Central Line L(57, 748) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_897 = ISOGONAL CONJUGATE OF X(896) (0.9765, -0.0384) X_1 = INCENTER (0.5714, 0.2333) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_162 = CEVAPOINT OF X(108) AND X(109) (0.4897, 0.6018) X_240 = -LINE CONJUGATE OF X(48) (0.7457, 0.8594) X_238 = -LINE CONJUGATE OF X(37) (1.6190, 1.4775) X_244 = -LINE CONJUGATE OF X(100) (0.7857, 0.1166) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_9 = MITTENPUNKT (0.5110, 0.1615) X_750 = INTERSECTION OF LINES X(1)X(88) AND X(2)X(31) (0.5675, 0.2354) X_57 = ISOGONAL CONJUGATE OF X(9) (0.6138, 0.3110) X_748 = INTERSECTION OF LINES X(2)X(31) AND X(9)X(38) (0.4360, 0.0802) X_896 = INTERSECTION OF LINES X(1)X(21) AND X(9)X(750) (2.0357, 2.1579) A B C X897 X1 X21 X162 X240 X238 X244 X44 X513 X9 X750 X57 X748 X896 (a, b, c) = (5, 6, 7) | AB = 1

X896 (INTERSECTION OF LINES X1X_21 AND X9X_750) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_896 = INTERSECTION OF LINES X_1X_21 AND X_9X_750."""

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


        def construct_x_00896(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_896 = INTERSECTION OF LINES X_1X_21 AND X_9X_750 on reference triangle ABC."""
            X_896 = eval_trilinear_point(model, A, B, C, '2*a**(2) - b**(2) - c**(2)', ID="X_896", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_1, X_21, 1, 21, incident=True)
            X_162 = eval_trilinear_point(model, A, B, C, '1/(sin(2*B) - sin(2*C))', ID="X_162", classes=["center", "incident"])
            X_240 = eval_trilinear_point(model, A, B, C, 'sec(A)*cos(A +  omega  )', ID="X_240", classes=["center", "incident"])
            central_line(model, X_162, X_240, 162, 240, incident=True)
            X_238 = eval_trilinear_point(model, A, B, C, 'a**(2) - b*c', ID="X_238", classes=["center", "incident"])
            X_244 = eval_trilinear_point(model, A, B, C, '(b - c)**(2)', ID="X_244", classes=["center", "incident"])
            central_line(model, X_238, X_244, 238, 244, incident=True)
            return promote_point_to_top(model, X_896)


        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_896 on the given reference triangle."""
            model = create_model('X_896 = INTERSECTION OF LINES X_1X_21 AND X_9X_750')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00896(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-00896.json"))
            write_center_svg(
                model_acute,
                here / "x-00896.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )