D:\j_Iam_TEMP\_jh\jh_Center_weight.wxmx
from F:\_j_arch_08112024\__j_TMRG\
(%i17) kill(all);

\[\]\[\tag{%o0} \ensuremath{\mathrm{done}}\]

(%i3) G1:4;G2:1;G:G1+G2;

\[\]\[\tag{%o1} 4\]

\[\]\[\tag{%o2} 1\]

\[\]\[\tag{%o3} 5\]

(%i7) hx1:1;hy1:1;hx2:2.5;hy2:0.5;

\[\]\[\tag{%o4} 1\]

\[\]\[\tag{%o5} 1\]

\[\]\[\tag{%o6} 2.5\]

\[\]\[\tag{%o7} 0.5\]

(%i10) mG1x:G1·hx1;mG2x:G2·hx2;mGx:mG1x+mG2x;

\[\]\[\tag{%o8} 4\]

\[\]\[\tag{%o9} 2.5\]

\[\]\[\tag{%o10} 6.5\]

(%i11) h_x:(mGx)/G;

\[\]\[\tag{%o11} 1.3\]

(%i14) mG1y:G1·hy1;mG2y:G2·hy2;mGy:mG1y+mG2y;

\[\]\[\tag{%o12} 4\]

\[\]\[\tag{%o13} 0.5\]

\[\]\[\tag{%o14} 4.5\]

(%i15) h_y:(mGy)/G;

\[\]\[\tag{%o15} 0.9\]

VARIANTS NUMBER 1 (+)

(%i18) draw2d(xrange = [0,4.5],
yrange = [0,3.5],
  font      = "Arial",
           font_size = 30,
title="jh_Center_weight.wxmx  Var 1 +",
  grid = true,
  proportional_axes=xy,
line_width=4,color=black,
   fill_color = "#eeeeee",
rectangle([0,0],[2,2]),
   fill_color = "#fefefe",
   rectangle([2,0],[3,1]),
   points_joined = true,
   point_size=0.1,
   line_width=1.3,
   line_type = solid,
points([[0,1],[3,1]]),
   points([[1,0],[1,2]]),
   points([[2,0],[2,2]]),
   label(["G1=+4",1.5,1.7]),
   label(["G2=+1",2.5,0.7]),
   color = black,
   label(["G1:4;G2:1;G:G1+G2;",2.2,3.4]),
   label(["hx1:1;hy1:1;hx2:2.5;hy2:0.5;",2.2,3.2]),
   label(["mG1x:G1*hx1;mG2x:G2*hx2;mGx:mG1x+mG2x;",2.2,3]),
   label(["h_x:(mGx)/G;",2.2,2.8]),
   label(["mG1y:G1*hy1;mG2y:G2*hy2;mGy:mG1y+mG2y;",2.2,2.6]),
   label(["h_y:(mGy)/G;",2.2,2.4]),
   points_joined = true,
   color=black,point_type = filled_circle,point_size = 1.5,
points([1,1.3,2.5],[1,0.9,0.5]),
   color=red,points_joined = false,
   points([0,1.3],[0,0.9]),
/*    color="#0e406e",
   points([1.3],[0.9]),  */
   label(["(1.3,0.9)",0.9,0.7]),
       points_joined = true,
   points([0,1.3],[0.9,0.9]),
   points([1.3,1.3],[0,0.9]),
   color="#0e406e",
    line_width=1,
   point_size=1.4,
   line_type=dashes,
   points([0,2.5],[0.5,0.5]),
   points([2.5,2.5],[0,0.5]),
   points([1,1],[0,1]),
   points([0,1],[1,1]),
      /*  GPL */
font      = "Arial",
           font_size = 16,
  color = "#0e406e",
label_orientation = 'vertical,
label(["www.k123.org.ua ",4,1.3]),
  label(["Kopanytsia Y (c)  2025",4.3,1.3])
   )$
Figure 1:
Diagram
Figure 2:D:\j_Iam_TEMP\_jh\jh_Center_weight_1.svg
Diagram

VARIANTS NUMBER 2 (-)

(%i26) G1:6;G2:1;hx1:1.5;hx2:2.5;G:G1G2;hy1:1;hy2:1.5;

\[\]\[\tag{%o20} 6\]

\[\]\[\tag{%o21} 1\]

\[\]\[\tag{%o22} 1.5\]

\[\]\[\tag{%o23} 2.5\]

\[\]\[\tag{%o24} 5\]

\[\]\[\tag{%o25} 1\]

\[\]\[\tag{%o26} 1.5\]

(%i27) h_x_:(G1·hx1G2·hx2)/G;

\[\]\[\tag{%o27} 1.3\]

(%i28) h_y:(G1·hy1G2·hy2)/G;

\[\]\[\tag{%o28} 0.9\]

(%i19) draw2d(xrange = [0,4.5],
yrange = [0,3.5],
  font      = "Arial",
           font_size = 30,
title="jh_Center_weight.wxmx  Var 2 -",
  grid = true,
  proportional_axes=xy,
line_width=4,color=black,
   fill_color = "#eeeeee",
rectangle([0,0],[3,2]),
   fill_color = "#fefefe",
   rectangle([2,1],[3,2]),
   points_joined = true,
   point_size=0.1,
   line_width=1.3,
   line_type = solid,
points([[0,1],[3,1]]),
   points([[1,0],[1,2]]),
   points([[2,0],[2,2]]),
   label(["G1=+6",1.5,1.7]),
   label(["G2=-1",2.5,1.7]),
   color = black,
   label(["G1:6;G2:1;hx1:1.5;hx2:2.5;",2.5,3.3]),
   label(["G:G1-G2;hy1:1;hy2:1.5;",2.5,3]),
   label(["h_x_:(G1*hx1-G2*hx2)/G;",2.5,2.7]),
   label(["h_y:(G1*hy1-G2*hy2)/G;;",2.5,2.4]),
   points_joined = true,
   color=black,point_type = filled_circle,point_size = 1.5,
points([1.5,1.3,2.5],[1,0.9,1.5]),
   color=red,points_joined = false,
   points([0,1.3],[0,0.9]),
   color="#0e406e",
   points([1.3],[0.9]),
   label(["(1.3,0.9)",0.9,0.7]),
   points_joined = true,
   points([0,1.3],[0.9,0.9]),
   points([1.3,1.3],[0,0.9]),
   color=red,
    line_width=1,
   point_size=1.4,
   line_type=dashes,
   points([0,2.5],[1.5,1.5]),
   points([2.5,2.5],[0,1.5]),
   points([1.5,1.5],[0,1]),
    points([0,1.5],[1,1]),
/*  GPL */
font      = "Arial",
           font_size = 16,
  color = "#0e406e",
label_orientation = 'vertical,
label(["www.k123.org.ua ",4,1.3]),
  label(["Kopanytsia Y (c)  2025",4.3,1.3])
   )$;
Figure 3:
Diagram
Figure 4:D:\j_Iam_TEMP\_jh\jh_Center_weight_2.svg
Diagram

Created with wxMaxima.

The source of this Maxima session can be downloaded here.