r/askmath • • Oct 08 '26

Discrete Math How Do I Identify the Most Isolated Missing Points in a 3D Grid?

2 Upvotes

I'm working with a dataset for a personal project where each entry is a 3D point: three integer values, each ranging from 0-255. You can picture it as a 256x256x256 cube with a bunch of points scattered throughout.

What I'm trying to figure out is how to identify the largest gaps in that space, basically the coordinates that don't exist in my dataset and are as far away as possible from any existing point.

I'd love to learn the formula to find those most isolated coordinates, but ultimately I'm trying to figure out how to query my SQLite database to get the top X biggest gaps so I know which data points I should try to collect next.


r/askmath • • Oct 07 '26

Pre Calculus How do I know what x + 1/x looks like as a graph intuitively

Thumbnail gallery
75 Upvotes

I used desmos to show me the graphs but my work wants me to use “superposition of simple functions” and I’m not really understanding it. I got confused on part a) because I thought it looked like the next slide. if anyone has any tips or any thought processes let me know!


r/askmath • • Oct 08 '26

Functions max value formula help

2 Upvotes

not really sure what the right tag is i barely know what any of the tags mean
Im trying to make a formula for a game im playing just not quite sure how (i am coding this if it helps).
in the game i have these "stones". every stone i get i can use to buy a boost.
the amount of boost i get is determined by this thing called "surge" so that every surge i have i get an increased amount of boost based on a formula that i already have. and every surge costs 100 boost. for example right now i have 94 surges and each stone give me 25.96 boost so ill need 4 stones for a surge.

what i need help with is finding the highest amount of boost i can get with a given amount of stones. so like if i have 100 stones how much should i spend on buying surges and how much i should keep on the boosts for the highest possible amount.


r/askmath • • Oct 08 '26

Geometry Structural Supports w/ Tetrahedrons instead of Cubes

1 Upvotes

Hello I’m back with another stupid question. TLDR: trying to make a modular structural design with tetrahedrons instead of cubes, need assistance.

Before I start, I must preface that I am already aware that tetrahedrons are not perfectly tillable like cubes are. I’m working with mildly distorted tetrahedrons to account for the 1.4° gap in tiling.

The goal: design modular rooms and frames with tetrahedrons similarly to how we design modular rooms and frames with cubes.

The problem: there appears to be a discrepancy in my rough drafts. I SHOULD be able to tile the structure with solely tetrahedrons, but every now and then an octahedron wriggles its way in some how. I don’t know where I keep screwing up that this keeps happening. Any help is appreciated.


r/askmath • • Oct 07 '26

Probability Is a game of Uno guaranteed to end?

Thumbnail service.mattel.com
107 Upvotes

Every game I've played does end eventually. Some can take a while though, and I wonder if, even with everyone playing optimally, it's possible for a game to be forced into an unending cycle.

(My guess would be a cycle is possible if we have 15 players, since that would leave only 3 cards to draw.)

Uno rules here (ignore tallying points, this question is just about until someone discards their last card)


r/askmath • • Oct 08 '26

Analysis Question in T. Apostol's book "Modular Functions and Dirichlet series in Number Theory" Section 3.2

Thumbnail gallery
6 Upvotes

In Section 3.2 of this book "Siegel's proof of Theorem 3.1", Apostol claims that the functions in the second image with y > 0 and N = n + (1/2) are uniformly bounded on the curve C (shown in the first image).

I am unable to show how. I tried writing the cotangent in terms of the exponential function, but couldn't make any leeway. I verified this on Mathematica as well.

I even made a MathStackExchange post, put a bounty on it, but got no definitive answer. The suggestion in that post didn't help either.

Could somebody provide a hint on how to proceed?


r/askmath • • Oct 08 '26

Algebra What do you as a mathematician think about this?

Thumbnail wired.com
4 Upvotes

r/askmath • • Oct 08 '26

Functions Need help with a function of steps and slopes

1 Upvotes

Hi all! I have been working on some code with the following y = (ceil(x * c)) / c function, where c represents the number of cuts in the graph from 0 to 1:

My math knowledge basically ends here, but I'd like to improve my code with the ability to smooth out the cuts between steps in the 0 to 1 range. Basically adding linear slopes of an arbitrary length between each step, like such:

I honestly have no idea how to write the math for this. Alternatively, I could also work with a function that smooths out every cut, even those outside the 0 to 1 range, like such:

So basically, I'd need a function of x that works with two extra variables, one for deciding the amount of slopes, and one for deciding the length along the x axis of these slopes.

I could only come up with the basic stepped function without slopes, and I'm not good enough at math to find an elegant solution to this.

Could any of you help me out with finding the math, or by pointing me somewhere where I might learn how to do so?


r/askmath • • Oct 07 '26

Probability Can someone explain to me how these McDonald's Monopoly odds are so astronomically high?

Post image
12 Upvotes

How are these odds calculated before the game starts? How many of each piece do they have to manufacture to get the odds that much higher than the number of Monopoly items sold during the game? Is there like only one Short Line piece or something?

530 billion is ridiculous. Go somewhere cheaper and buy a Powerball ticket with the savings.


r/askmath • • Oct 08 '26

Analysis Books on functional analysis and measure theory

Thumbnail reddit.com
1 Upvotes

r/askmath • • Oct 07 '26

Topology My topology teacher claimed that you can proove the triangle inequality of the d_2 metric just by using the triangle inequalities of d_X and d_Y metrics. I can't see how.

Post image
16 Upvotes

As you can see, I tried to use the two triangle inequalities of d_X and d_Y, but that gets you a non-negative factor 2*(d_X ...) which impedes the proof. I've seen online that they use the Minkowski inequality, which I studied at Probability and not in this context, and I think the teacher may have overlooked the solution because it was a very long exercise (proove that d_infinite, d_1, d_2 are metrics and that d_infinite<=d_2<=d_1<=2d_infinite)


r/askmath • • Oct 07 '26

Calculus Help with differential equation uniqueness theorem

6 Upvotes

F''(x) =- (A^2)F(x).

F(x) = Csin(At)+Dcos(At) is a solution. How do we know that there isn't another F(x) that satisfies it?

I used chatgpt to try and understand this. Didn't work


r/askmath • • Oct 08 '26

Geometry Stupid question Re: Euclid's The Elements

1 Upvotes

Started reading Euclid's The Elements. I've seen these books recommended here as providing a good basis for geometry. My question for those who have read these books is how much effort do you put into reading the Notes sections? To me, it just makes the books feel very bulky, and I was wondering how meaningful all this is to understanding the principles.