Hi, guys
Could you please help me to have a look at my code? It seems that the result is wrong. Thank you!
Clear["`*"];(*????????,??table*)
b = 2;
y01 = Table[
N[Maximize[{-x^2*a - 3*x*b + 1, -(6/8) <= x <= -(4/8)}, x]], {a, 1,
3}];
Print["q1=", y01]
y11 = Table[
N[Maximize[{-x^3*a + 2*x*b - 1, -2 <= x <= 2}, x]], {a, 1, 3}];
Print["q2=", y11]
q = N[{y01, y11}]
Print["Ymax=", MaximalBy[q, First]]