X3204

X54-CEVA CONJUGATE OF X55

< 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) { 6, 101 }: Central Line L(6, 101) { 45, 284 }: Central Line L(45, 284) { 41, 584 }: Central Line L(41, 584) { 218, 583 }: Central Line L(218, 583) { 9, 2174 }: Central Line L(9, 2174) { 220, 2301 }: Central Line L(220, 2301) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_54 = KOSNITA POINT (0.5880, 0.2176) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_101 = Ψ(INCENTER, SYMMEDIAN POINT) (0.2143, 0.5249) X_45 = -BETH CONJUGATE OF X(1) (0.5418, 0.1981) X_284 = -CROSS CONJUGATE OF X(21) (0.5646, 0.2088) X_41 = -CEVA CONJUGATE OF X(31) (0.5823, 0.2244) X_584 = ORTHOHARMONIC OF X(500) (0.5720, 0.2209) X_218 = -CEVA CONJUGATE OF X(55) (0.6557, 0.3333) X_583 = ORTHOGONAL OF X(500) (0.6638, 0.3726) X_9 = MITTENPUNKT (0.5110, 0.1615) X_2174 = -ISOCONJUGATE OF X(79) (0.5728, 0.2013) X_220 = -CEVA CONJUGATE OF X(55) (0.4826, 0.1278) X_2301 = -ISOCONJUGATE OF X(1242) (0.5576, 0.1836) X_3204 = -CEVA CONJUGATE OF X(55) (0.6369, 0.2426) A B C X54 X55 X6 X101 X45 X284 X41 X584 X218 X583 X9 X2174 X220 X2301 X3204 (a, b, c) = (5, 6, 7) | AB = 1

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

"""GEOMETOR construction model for X_3204 = X_54-CEVA CONJUGATE OF X_55."""

        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,
            ceva_conjugate,
            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_03204(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3204 = X_54-CEVA CONJUGATE OF X_55 on reference triangle ABC."""
            X_54 = eval_trilinear_point(model, A, B, C, 'sec(B - C)', ID="X_54", classes=["center"])
            X_55 = eval_trilinear_point(model, A, B, C, 'a*(b + c - a)', ID="X_55", classes=["center"])
            X_3204 = ceva_conjugate(model, A, B, C, X_54, X_55, ID="X_3204", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_101 = eval_trilinear_point(model, A, B, C, 'a/(b - c)', ID="X_101", classes=["center", "incident"])
            central_line(model, X_6, X_101, 6, 101, incident=True)
            X_45 = eval_trilinear_point(model, A, B, C, '2*b + 2*c - a', ID="X_45", classes=["center", "incident"])
            X_284 = eval_trilinear_point(model, A, B, C, '(sin(A))/(cos(B) + cos(C))', ID="X_284", classes=["center", "incident"])
            central_line(model, X_45, X_284, 45, 284, incident=True)
            X_41 = eval_trilinear_point(model, A, B, C, 'a**(2)*(b + c - a)', ID="X_41", classes=["center", "incident"])
            X_584 = eval_trilinear_point(model, A, B, C, '(a*(a*b**(2) + a*c**(2) + b*c**(2) + b**(2)*c + 2*a*b*c - a**(3)))', ID="X_584", classes=["center", "incident"])
            central_line(model, X_41, X_584, 41, 584, incident=True)
            return promote_point_to_top(model, X_3204)


        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_3204 on the given reference triangle."""
            model = create_model('X_3204 = X_54-CEVA CONJUGATE OF X_55')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03204(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-03204.json"))
            write_center_svg(
                model_acute,
                here / "x-03204.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )