So, i want to express these:
$$\max(\cos(x)\cos(y)\cos(z)),\quad x+y+z=\pi,\quad x,y,z\in(0,\pi]$$
Attempt:
In[81]:= NMaximize[{Cos[x] Cos[y] Cos[z],
x + y + z == Pi && 0 < x <= \[Pi] && 0 < y <= \[Pi] &&
0 < z <= \[Pi]}, {x, y, z}]
Out[81]= {0.125, {x -> 1.0472, y -> 1.0472, z -> 1.0472}}
But how so? I tried manually like this:
In[82]:= N[Cos[30 Degree] Cos[30 Degree] Cos[30 Degree]]
Out[82]= 0.649519
The above calculation implies there are numbers greater than the maximum value, i mean $0.649>0.125$. I think, i made a mistake to formulate the expression. Could you help me please? If the formulation is correct that would be greater or equal to Out[82]
. Thanks in advance?
ContourPlot[Cos[x] Cos[y] Cos[\[Pi] - x - y], {x, 0, \[Pi]}, {y, 0, \[Pi] - x}, Contours -> Range[-12, 12]/100., PlotPoints -> 100]
. $\endgroup$