X228

X3-CEVA CONJUGATE OF X71

< 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) { 19, 25 }: Central Line L(19, 25) { 31, 32 }: Central Line L(31, 32) { 3, 63 }: Central Line L(3, 63) { 98, 100 }: Central Line L(98, 100) { 42, 181 }: Central Line L(42, 181) { 48, 184 }: Central Line L(48, 184) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_71 = ISOGONAL CONJUGATE OF X(27) (0.4807, 0.0915) X_19 = CLAWSON POINT (0.6246, 0.4244) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_32 = 3rd POWER POINT (0.6400, 0.3332) X_63 = ISOGONAL CONJUGATE OF X(19) (0.4566, 0.0823) X_98 = TARRY POINT (0.8891, -0.2281) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_181 = APOLLONIUS POINT (0.6163, 0.3093) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_184 = INVERSE OF X(125) IN THE BROCARD CIRCLE (0.5788, 0.1496) X_228 = -CEVA CONJUGATE OF X(71) (0.5231, 0.1126) A B C X3 X71 X19 X25 X31 X32 X63 X98 X100 X42 X181 X48 X184 X228 (a, b, c) = (5, 6, 7) | AB = 1

X228 (X3-CEVA CONJUGATE OF X71) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_228 = X_3-CEVA CONJUGATE OF X_71."""

        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,
            circumcenter_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00228(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_228 = X_3-CEVA CONJUGATE OF X_71 on reference triangle ABC."""
            X_228 = eval_trilinear_point(model, A, B, C, '(sin(2*A))*(sin(B) + sin(C))', ID="X_228", classes=["selected", "target"])
            X_19 = eval_trilinear_point(model, A, B, C, 'tan(A)', ID="X_19", classes=["center", "incident"])
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            central_line(model, X_19, X_25, 19, 25, incident=True)
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_32 = eval_trilinear_point(model, A, B, C, 'a**(3)', ID="X_32", classes=["center", "incident"])
            central_line(model, X_31, X_32, 31, 32, incident=True)
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_63 = eval_trilinear_point(model, A, B, C, 'cot(A)', ID="X_63", classes=["center", "incident"])
            central_line(model, X_3, X_63, 3, 63, incident=True)
            return promote_point_to_top(model, X_228)


        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_228 on the given reference triangle."""
            model = create_model('X_228 = X_3-CEVA CONJUGATE OF X_71')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00228(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-00228.json"))
            write_center_svg(
                model_acute,
                here / "x-00228.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )