X308

ISOTOMIC CONJUGATE OF X39

< 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, 76 }: Central Line L(6, 76) { 25, 183 }: Central Line L(25, 183) { 69, 263 }: Central Line L(69, 263) { 42, 313 }: Central Line L(42, 313) { 290, 311 }: Central Line L(290, 311) { 251, 385 }: Central Line L(251, 385) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_39 = BROCARD MIDPOINT (0.5778, 0.2305) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_76 = 3rd BROCARD POINT (0.4567, 0.1388) X_25 = HOMOTHETIC CENTER OF ORTHIC AND TANGENTIAL TRIANGLES (0.6329, 0.4497) X_183 = TRILINEAR PRODUCT X(75)X(182) (0.4700, 0.1275) X_69 = SYMMEDIAN POINT OF THE ANTICOMPLEMENTARY TRIANGLE (0.4122, 0.0654) X_263 = ISOGONAL CONJUGATE OF X(183) (0.6298, 0.3525) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_313 = ISOTOMIC CONJUGATE OF X(58) (0.4368, 0.1249) X_290 = ISOGONAL CONJUGATE OF X(237) (0.7829, -0.1380) X_311 = ISOTOMIC CONJUGATE OF X(54) (0.4818, 0.1803) X_251 = ISOGONAL CONJUGATE OF X(141) (0.6177, 0.3042) X_385 = -HIRST INVERSE OF X(6) (2.2863, 2.0795) X_308 = ISOTOMIC CONJUGATE OF X(39) (0.4915, 0.1700) A B C X39 X6 X76 X25 X183 X69 X263 X42 X313 X290 X311 X251 X385 X308 (a, b, c) = (5, 6, 7) | AB = 1

X308 (ISOTOMIC CONJUGATE OF X39) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_308 = ISOTOMIC CONJUGATE OF X_39."""

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


        def construct_x_00308(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_308 = ISOTOMIC CONJUGATE OF X_39 on reference triangle ABC."""
            X_308 = eval_trilinear_point(model, A, B, C, 'b**(3)*c**(3)/(b**(2) + c**(2))', ID="X_308", classes=["selected", "target"])
            X_6 = symmedian_point_of(model, A, B, C, ID="X_6", classes=["center", "incident"])
            X_76 = eval_trilinear_point(model, A, B, C, '1/a**(3)', ID="X_76", classes=["center", "incident"])
            central_line(model, X_6, X_76, 6, 76, incident=True)
            X_25 = eval_trilinear_point(model, A, B, C, 'sin(A)*tan(A)', ID="X_25", classes=["center", "incident"])
            X_183 = eval_trilinear_point(model, A, B, C, 'b**(2)*c**(2)*cos(A-  omega  )', ID="X_183", classes=["center", "incident"])
            central_line(model, X_25, X_183, 25, 183, incident=True)
            X_69 = eval_trilinear_point(model, A, B, C, '(cos(A))/a**(2)', ID="X_69", classes=["center", "incident"])
            X_263 = eval_trilinear_point(model, A, B, C, 'a**(2)*sec(A -  omega  )', ID="X_263", classes=["center", "incident"])
            central_line(model, X_69, X_263, 69, 263, incident=True)
            return promote_point_to_top(model, X_308)


        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_308 on the given reference triangle."""
            model = create_model('X_308 = ISOTOMIC CONJUGATE OF X_39')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00308(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-00308.json"))
            write_center_svg(
                model_acute,
                here / "x-00308.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )