I've solved a non-linear system of equations and the numerical solution I obtained was the following:
{{x ->
ConditionalExpression[0.125 (-5. - 8. y + 48. z),
(-24.0367 <= y <= 0.373823
&&
Root[1.4184*10^9 - 1.14866*10^9 y + 3.59484*10^8 y^2 -
1.83744*10^8 y^3 +
5.568*10^7 y^4 + (-1.65159*10^10 - 5.23081*10^9 y -
6.91386*10^9 y^2 - 9.78854*10^8 y^3 -
6.5257*10^8 y^4) #1 + (-9.28089*10^9 - 9.79188*10^8 y -
1.24545*10^9 y^2 + 1.60358*10^8 y^3 +
1.06906*10^8 y^4) #1^2 + (-2.31117*10^8 +
3.12699*10^8 y + 4.16932*10^8 y^2) #1^3 +
4.26553*10^8 #1^4 &, 1]
<= z <=
Root[1.77292*10^11 - 1.43567*10^11 y + 4.49381*10^10 y^2 -
2.29657*10^10 y^3 +
6.96*10^9 y^4 + (-2.06444*10^12 - 6.53839*10^11 y -
8.64219*10^11 y^2 - 1.22355*10^11 y^3 -
8.15703*10^10 y^4) #1 + (-1.1601*10^12 -
1.22397*10^11 y - 1.55679*10^11 y^2 +
2.00448*10^10 y^3 +
1.33632*10^10 y^4) #1^2 + (-2.88882*10^10 +
3.90874*10^10 y + 5.21165*10^10 y^2) #1^3 +
5.33192*10^10 #1^4 &, 2])
||
(Root[1.77292*10^11 - 1.43567*10^11 y + 4.49381*10^10 y^2 -
2.29657*10^10 y^3 +
6.96*10^9 y^4 + (-2.06444*10^12 - 6.53839*10^11 y -
8.64219*10^11 y^2 - 1.22355*10^11 y^3 -
8.15703*10^10 y^4) #1 + (-1.1601*10^12 -
1.22397*10^11 y - 1.55679*10^11 y^2 +
2.00448*10^10 y^3 +
1.33632*10^10 y^4) #1^2 + (-2.88882*10^10 +
3.90874*10^10 y + 5.21165*10^10 y^2) #1^3 +
5.33192*10^10 #1^4 &, 1]
<= z <=
Root[1.77292*10^11 - 1.43567*10^11 y + 4.49381*10^10 y^2 -
2.29657*10^10 y^3 +
6.96*10^9 y^4 + (-2.06444*10^12 - 6.53839*10^11 y -
8.64219*10^11 y^2 - 1.22355*10^11 y^3 -
8.15703*10^10 y^4) #1 + (-1.1601*10^12 -
1.22397*10^11 y - 1.55679*10^11 y^2 +
2.00448*10^10 y^3 +
1.33632*10^10 y^4) #1^2 + (-2.88882*10^10 +
3.90874*10^10 y + 5.21165*10^10 y^2) #1^3 +
5.33192*10^10 #1^4 &, 2]
&&
y > 0.373823)
||
(Root[1.77292*10^11 - 1.43567*10^11 y + 4.49381*10^10 y^2 -
2.29657*10^10 y^3 +
6.96*10^9 y^4 + (-2.06444*10^12 - 6.53839*10^11 y -
8.64219*10^11 y^2 - 1.22355*10^11 y^3 -
8.15703*10^10 y^4) #1 + (-1.1601*10^12 -
1.22397*10^11 y - 1.55679*10^11 y^2 +
2.00448*10^10 y^3 +
1.33632*10^10 y^4) #1^2 + (-2.88882*10^10 +
3.90874*10^10 y + 5.21165*10^10 y^2) #1^3 +
5.33192*10^10 #1^4 &, 1] <= z <=
Root[1.77292*10^11 - 1.43567*10^11 y + 4.49381*10^10 y^2 -
2.29657*10^10 y^3 +
6.96*10^9 y^4 + (-2.06444*10^12 - 6.53839*10^11 y -
8.64219*10^11 y^2 - 1.22355*10^11 y^3 -
8.15703*10^10 y^4) #1 + (-1.1601*10^12 -
1.22397*10^11 y - 1.55679*10^11 y^2 +
2.00448*10^10 y^3 +
1.33632*10^10 y^4) #1^2 + (-2.88882*10^10 +
3.90874*10^10 y + 5.21165*10^10 y^2) #1^3 +
5.33192*10^10 #1^4 &, 2]
&&
y < -24.0367)]}}
How can I find the intersection of two sets and how can I sample elements from this intersection?
To be honest, I can't even figure out what elements belong to the set I obtained as the solution to my system of equations. But that's OK, because all I'm interested in is finding its intersection with the set
{x^2 + y^2 + z^2 <= 1} - {x^2 + y^2 + z^2 <= 0.001}.
Edit 3: The set I mean above is
{0.001 <= x^2 + y^2 + z^2 <= 1}
I'd also like to sample elements from this intersection in case it is non-empty. Is it possible to do such things with Mathematica?
Edit 1: Here follows the code that gave me that solution:
Edit 2: I changed the function k
k = (((6 - x)^2 - (y)^2)*z + 0.5*(6^2 - (6 - x)^2)*10 +
0.5*10*y^2)/(2*z*(6 - x - y) + x*10 + y*10)
Ixx = 1/3*(10*((6 - (k))^3 - (6 - x - (k))^3) +
2*z*((6 - x - (k))^3 - (-(k) + y)^3) +
10*((-(k) + y)^3 - (-(k))^3))
Q1 = -(k)*(y*10 + 2*((6 - x) - (k))*z) + 0.5*10*(6^2 - (6 - x)^2) +
z*((6 - x)^2 - (k)^2)
Q2 = (k)*(y*10 + 2*((k) - y)*z) + 0.5*10*y^2 - z*((k)^2 - (y)^2)
NSolve[{290*10*Ixx >= 2.4*Q1, 580*Ixx >= 24*6/2,
60*(2*6*(z - x - y) + x*10 + y*10)*8*10 + 2*500*12 ==
60*(10*3)*1*10}, {x, y, z}, Reals]