Given $A$ being the intersection set between $x + y + z + u + v + w = 1$ and $x^2 + y^2 + z^2 + u^2 + v^2 = 1$, find the closest and farthest points to the origin that belong to $A$ in the space $\mathbb{R}^6$.
Is this even possible?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityGiven $A$ being the intersection set between $x + y + z + u + v + w = 1$ and $x^2 + y^2 + z^2 + u^2 + v^2 = 1$, find the closest and farthest points to the origin that belong to $A$ in the space $\mathbb{R}^6$.
Is this even possible?
Try
NMinimize[{x^2 + y^2 + z^2 + u^2 + v^2 +w^2, {x + y + z + u + v + w == 1, x^2 + y^2 + z^2 + u^2 + v^2 == 1}}, {x, y, z, u, v, w}]
(*{1., {x -> -0.0316501, y -> -0.253188, z -> 0.544651, u -> 0.796892,v -> -0.0566812, w -> -0.0000230699}}*)
and
NMaximize[{x^2 + y^2 + z^2 + u^2 + v^2 +w^2, {x + y + z + u + v + w == 1, x^2 + y^2 + z^2 + u^2 + v^2 == 1}}, {x, y, z, u, v, w}]
(*{11.4721, {x -> -0.447214, y -> -0.447214, z -> -0.447214,u -> -0.447214, v -> -0.447214, w -> 3.23607}}*)
A
is defined by the two constraints, I think.
$\endgroup$
Oct 13, 2019 at 19:47