Number of hypercubes that fit into a hypersphere with radius 1 and centered at the origin
$begingroup$
There is a hypercube with sides of length 2 and a hypersphere with a radius of 1. Both of them are centered at the origin (the hypercube surrounds the hypersphere). Each of the d dimensions in the hypercube is divided into K segments, so that the hypercube is dissected into K^d “small” hypercubes. Which means, each of the small hypercubes h has volume (2/K)^d.
How do you classify each small hypercube h, into one of three categories: either it is wholly inside the hypersphere, wholly outside the hypersphere, or else the surface of the hypersphere passes through h.
Note: You cannot calculate the volume of the hypersphere to find out how many small hypercubes fit in the hypersphere of radius 1.
My approach has been to see which small hypercubes are entirely within a distance of 1 from the origin, but I don't know which coordinates of the small hypercube to use to compare against the unit distance from the origin.
geometry volume spheres
$endgroup$
add a comment |
$begingroup$
There is a hypercube with sides of length 2 and a hypersphere with a radius of 1. Both of them are centered at the origin (the hypercube surrounds the hypersphere). Each of the d dimensions in the hypercube is divided into K segments, so that the hypercube is dissected into K^d “small” hypercubes. Which means, each of the small hypercubes h has volume (2/K)^d.
How do you classify each small hypercube h, into one of three categories: either it is wholly inside the hypersphere, wholly outside the hypersphere, or else the surface of the hypersphere passes through h.
Note: You cannot calculate the volume of the hypersphere to find out how many small hypercubes fit in the hypersphere of radius 1.
My approach has been to see which small hypercubes are entirely within a distance of 1 from the origin, but I don't know which coordinates of the small hypercube to use to compare against the unit distance from the origin.
geometry volume spheres
$endgroup$
add a comment |
$begingroup$
There is a hypercube with sides of length 2 and a hypersphere with a radius of 1. Both of them are centered at the origin (the hypercube surrounds the hypersphere). Each of the d dimensions in the hypercube is divided into K segments, so that the hypercube is dissected into K^d “small” hypercubes. Which means, each of the small hypercubes h has volume (2/K)^d.
How do you classify each small hypercube h, into one of three categories: either it is wholly inside the hypersphere, wholly outside the hypersphere, or else the surface of the hypersphere passes through h.
Note: You cannot calculate the volume of the hypersphere to find out how many small hypercubes fit in the hypersphere of radius 1.
My approach has been to see which small hypercubes are entirely within a distance of 1 from the origin, but I don't know which coordinates of the small hypercube to use to compare against the unit distance from the origin.
geometry volume spheres
$endgroup$
There is a hypercube with sides of length 2 and a hypersphere with a radius of 1. Both of them are centered at the origin (the hypercube surrounds the hypersphere). Each of the d dimensions in the hypercube is divided into K segments, so that the hypercube is dissected into K^d “small” hypercubes. Which means, each of the small hypercubes h has volume (2/K)^d.
How do you classify each small hypercube h, into one of three categories: either it is wholly inside the hypersphere, wholly outside the hypersphere, or else the surface of the hypersphere passes through h.
Note: You cannot calculate the volume of the hypersphere to find out how many small hypercubes fit in the hypersphere of radius 1.
My approach has been to see which small hypercubes are entirely within a distance of 1 from the origin, but I don't know which coordinates of the small hypercube to use to compare against the unit distance from the origin.
geometry volume spheres
geometry volume spheres
asked Dec 1 '18 at 23:21
dbrunsondbrunson
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Your setup is a bit strange, as the dissection into $K$ segments (in each direction) would yield a central segment (centered at the origin) when $K$ is odd and 2 segments on either side of the origin when $K$ is even.
Thus I'll restrict to $K$ being even only in my following answer. (An analogue could be given for $K$ being odd, for sure.)
For a small cube of side length $2/K$ being completely contained within the hypersphere the outermost vertex has to have a Pythagorean coordinates squared sum lower than 1. According to my previous restriction this gives
$$sum_{i=1}^d (n_ifrac2K)^2 < 1$$
For a small cube of side length $2/K$ being completely outside the hypersphere the innermost vertex has to have a Pythagorean coordinates squared sum larger than 1. According to my previous restriction this gives
$$sum_{i=1}^d ((n_i-1)frac2K)^2 > 1$$
Thus you'd just have to check all $d$-tuples with each position number
$-K/2 leq n_i leq K/2$ whether it would belong to the first case (inside), the second case (outside), or else (somehow hitting the hypersphere).
--- rk
$endgroup$
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3021976%2fnumber-of-hypercubes-that-fit-into-a-hypersphere-with-radius-1-and-centered-at-t%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Your setup is a bit strange, as the dissection into $K$ segments (in each direction) would yield a central segment (centered at the origin) when $K$ is odd and 2 segments on either side of the origin when $K$ is even.
Thus I'll restrict to $K$ being even only in my following answer. (An analogue could be given for $K$ being odd, for sure.)
For a small cube of side length $2/K$ being completely contained within the hypersphere the outermost vertex has to have a Pythagorean coordinates squared sum lower than 1. According to my previous restriction this gives
$$sum_{i=1}^d (n_ifrac2K)^2 < 1$$
For a small cube of side length $2/K$ being completely outside the hypersphere the innermost vertex has to have a Pythagorean coordinates squared sum larger than 1. According to my previous restriction this gives
$$sum_{i=1}^d ((n_i-1)frac2K)^2 > 1$$
Thus you'd just have to check all $d$-tuples with each position number
$-K/2 leq n_i leq K/2$ whether it would belong to the first case (inside), the second case (outside), or else (somehow hitting the hypersphere).
--- rk
$endgroup$
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
add a comment |
$begingroup$
Your setup is a bit strange, as the dissection into $K$ segments (in each direction) would yield a central segment (centered at the origin) when $K$ is odd and 2 segments on either side of the origin when $K$ is even.
Thus I'll restrict to $K$ being even only in my following answer. (An analogue could be given for $K$ being odd, for sure.)
For a small cube of side length $2/K$ being completely contained within the hypersphere the outermost vertex has to have a Pythagorean coordinates squared sum lower than 1. According to my previous restriction this gives
$$sum_{i=1}^d (n_ifrac2K)^2 < 1$$
For a small cube of side length $2/K$ being completely outside the hypersphere the innermost vertex has to have a Pythagorean coordinates squared sum larger than 1. According to my previous restriction this gives
$$sum_{i=1}^d ((n_i-1)frac2K)^2 > 1$$
Thus you'd just have to check all $d$-tuples with each position number
$-K/2 leq n_i leq K/2$ whether it would belong to the first case (inside), the second case (outside), or else (somehow hitting the hypersphere).
--- rk
$endgroup$
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
add a comment |
$begingroup$
Your setup is a bit strange, as the dissection into $K$ segments (in each direction) would yield a central segment (centered at the origin) when $K$ is odd and 2 segments on either side of the origin when $K$ is even.
Thus I'll restrict to $K$ being even only in my following answer. (An analogue could be given for $K$ being odd, for sure.)
For a small cube of side length $2/K$ being completely contained within the hypersphere the outermost vertex has to have a Pythagorean coordinates squared sum lower than 1. According to my previous restriction this gives
$$sum_{i=1}^d (n_ifrac2K)^2 < 1$$
For a small cube of side length $2/K$ being completely outside the hypersphere the innermost vertex has to have a Pythagorean coordinates squared sum larger than 1. According to my previous restriction this gives
$$sum_{i=1}^d ((n_i-1)frac2K)^2 > 1$$
Thus you'd just have to check all $d$-tuples with each position number
$-K/2 leq n_i leq K/2$ whether it would belong to the first case (inside), the second case (outside), or else (somehow hitting the hypersphere).
--- rk
$endgroup$
Your setup is a bit strange, as the dissection into $K$ segments (in each direction) would yield a central segment (centered at the origin) when $K$ is odd and 2 segments on either side of the origin when $K$ is even.
Thus I'll restrict to $K$ being even only in my following answer. (An analogue could be given for $K$ being odd, for sure.)
For a small cube of side length $2/K$ being completely contained within the hypersphere the outermost vertex has to have a Pythagorean coordinates squared sum lower than 1. According to my previous restriction this gives
$$sum_{i=1}^d (n_ifrac2K)^2 < 1$$
For a small cube of side length $2/K$ being completely outside the hypersphere the innermost vertex has to have a Pythagorean coordinates squared sum larger than 1. According to my previous restriction this gives
$$sum_{i=1}^d ((n_i-1)frac2K)^2 > 1$$
Thus you'd just have to check all $d$-tuples with each position number
$-K/2 leq n_i leq K/2$ whether it would belong to the first case (inside), the second case (outside), or else (somehow hitting the hypersphere).
--- rk
answered Dec 2 '18 at 10:31
Dr. Richard KlitzingDr. Richard Klitzing
1,57016
1,57016
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
add a comment |
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
Apologies for the confusion. I meant what your answer assumed (that the big hypercube is split up into smaller hypercubes of sides 2/K.). Why wouldn't the same solution work for K being odd?
$endgroup$
– dbrunson
Dec 2 '18 at 17:24
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
@dbrunson: if $K$ would be odd, then the position index does not happen to be the outermost coordinate (up to size scaling), because there is a tiny cube centered at the origin. Thus you'd need for halved position numbers. (Not impossible, just ugly.)
$endgroup$
– Dr. Richard Klitzing
Dec 3 '18 at 18:05
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
When you start going to the "left" of the origin (using negative values of n), the n-1 value becomes more negative making the innermost vertex distance larger right? How do you account for going in the negative direction of the dimension?
$endgroup$
– dbrunson
Dec 4 '18 at 20:51
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
$begingroup$
Also, I'm having trouble visualizing how I would check all d-tuples with each position number. Explanation for 2 dimensional object would be helpful.
$endgroup$
– dbrunson
Dec 5 '18 at 18:43
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3021976%2fnumber-of-hypercubes-that-fit-into-a-hypersphere-with-radius-1-and-centered-at-t%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown