X650

CROSSDIFFERENCE OF X1 AND X3

X650 = crossdifference of every pair of points on line {1, 3}
< 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) { 230, 231 }: Central Line L(230, 231) { 44, 513 }: Central Line L(44, 513) { 241, 514 }: Central Line L(241, 514) { 2, 693 }: Central Line L(2, 693) { 55, 884 }: Central Line L(55, 884) { 100, 919 }: Central Line L(100, 919) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_230 = -CEVA CONJUGATE OF X(114) (0.9746, 0.6698) X_231 = -CEVA CONJUGATE OF X(128) (1.0375, 0.6458) X_44 = -LINE CONJUGATE OF X(1) (2.1429, 2.0996) X_513 = ISOGONAL CONJUGATE OF X(100) (1.0529, -0.0806) X_241 = -LINE CONJUGATE OF X(55) (1.1217, 1.2442) X_514 = ISOGONAL CONJUGATE OF X(101) (1.0761, -0.0329) X_2 = CENTROID (0.5374, 0.2000) X_693 = ISOTOMIC CONJUGATE OF X(100) (-25.8163, 8.9981) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_884 = ISOGONAL CONJUGATE OF X(883) (1.0241, 0.0337) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_919 = ISOGONAL CONJUGATE OF X(918) (1.0058, 0.1699) X_650 = CROSSDIFFERENCE OF X(1) AND X(3) (13.7143, -4.1991) A B C X230 X231 X44 X513 X241 X514 X2 X693 X55 X884 X100 X919 X650 (a, b, c) = (5, 6, 7) | AB = 1

X650 (CROSSDIFFERENCE OF X1 AND X3) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_650 = CROSSDIFFERENCE OF X_1 AND X_3."""

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


        def construct_x_00650(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_650 = CROSSDIFFERENCE OF X_1 AND X_3 on reference triangle ABC."""
            X_650 = eval_trilinear_point(model, A, B, C, 'cos(B) - cos(C)', ID="X_650", classes=["selected", "target"])
            X_230 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2)*(2*a**(2) - b**(2) - c**(2)) + (b**(2) - c**(2))**(2))', ID="X_230", classes=["center", "incident"])
            X_231 = eval_trilinear_point(model, A, B, C, '(cos(B))*(4*(sin(C))**(2) - 1)*(cos(A)*sin(B) - sin(A)*cos(B)) - (cos(C))*(4*(sin(B))**(2) - 1)*(cos(C)*sin(A) - sin(C)*cos(A))', ID="X_231", classes=["center", "incident"])
            central_line(model, X_230, X_231, 230, 231, incident=True)
            X_44 = eval_trilinear_point(model, A, B, C, 'b + c - 2*a', ID="X_44", classes=["center", "incident"])
            X_513 = eval_trilinear_point(model, A, B, C, 'b - c', ID="X_513", classes=["center", "incident"])
            central_line(model, X_44, X_513, 44, 513, incident=True)
            X_241 = eval_trilinear_point(model, A, B, C, '(cos(B/2))**(4) - ((cos(A/2))**(2))*((cos(B/2))**(2) +(cos(C/2))**(2)) + (cos(C/2))**(4)', ID="X_241", classes=["center", "incident"])
            X_514 = eval_trilinear_point(model, A, B, C, '(b - c)/a', ID="X_514", classes=["center", "incident"])
            central_line(model, X_241, X_514, 241, 514, incident=True)
            return promote_point_to_top(model, X_650)


        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_650 on the given reference triangle."""
            model = create_model('X_650 = CROSSDIFFERENCE OF X_1 AND X_3')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00650(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-00650.json"))
            write_center_svg(
                model_acute,
                here / "x-00650.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )