« first day (4216 days earlier)      last day (1102 days later) » 
00:00 - 23:0023:00 - 00:00

00:02
Matching chains, copper?
@copper.hat can you get $-\frac1{12}$ as a product of the positive integers?
The jumpsuit was for the sanatorium not prison hopefully.
@copper.hat surprising!
@robjohn The first time I saw the $-{ 1 \over 12}$ I thought it was a ruse along the lines of an April Fool's.
It sort of is, but the fact that $\zeta(-1)=-\frac1{12}$ has given it wings.
00:20
:-) Red Bull $\zeta$.
@copper.hat: Note that $$\sum_{k=1}^\infty(-1)^{k-1}kx^k=\frac1{(1+x)^2}$$ Take the limit as $x\to1^-$. We get $$\sum_{k=1}^\infty(-1)^{k-1}k=\frac14$$
Since $$\begin{align}\sum_{k=1}^\infty(-1)^{k-1}k&=\sum_{k=1}^\infty((2k-1)-2k)\\&=\sum_{k=1}^\infty((2k-1)+2k)-\sum_{k=1}^\infty4k\\&=\sum_{k=1}^\infty k-4\sum_{k=1}^\infty k\\&=-3\sum_{k=1}^\infty k\end{align}$$ we get $$\sum_{k=1}^\infty k=-\frac1{12}$$
@robjohn Like Icarus?
@TedShifrin indeed
Rearranging lots of infinities is magical.
It is, but it gets the same result without using $\zeta$
00:28
Taking non-existent limits.
Still.
But clever enough to fool plenty on MSE.
@TedShifrin Of course it is. There is no legal way to get $$\sum_{k=1}^\infty k=-\frac1{12}$$
Aww …
Hey can someone help me with this 'cause I am very confused
0
Q: A reference to a theorem about L1-bounded Martingales

Akiva WeinbergerI'm auditing a course called "Topics in Analysis", and in class we mentioned a theorem that didn't make sense to me. I don't fully remember how it goes, but it was something like: Theorem (half-remembered, probably not the correct formulation): The limit of an $L^1$-bounded Martingale can be uni...

Get notes from classmates?
00:50
Maybe is relevant the Lebesgue decomposition theorem? A (Radon?) measure on $\mathbb{R}$ can uniquely be decomposed as a sum of Dirac measures, an absolutely continuous part, and a singular continuous part.
What does "singular continuous" mean?
@NicolásVilches
Hmmmm... if I recall correctly, a measure is continuous if the cummulative distribution $F(t)=\mu(]-\inf, t])$ is continuous. A nice example is the Cantor staircase: it is continuous, but the associated measure is supported on the Cantor set, hence singular
(As usual, given a continuous non-decreasing $F\colon\mathbb{R} \to [0, 1]$, we can define a measure on $\mathbb{R}$ by putting $\mu([a, b])=F(b)-F(a)$. If $F$ is not continuous this is still possible, but requires extra work!)
@NicolásVilches I think I get "continuous", but "singular"?
Does it just mean "measure 0 support"?
In this case, yes. Two measures $\mu_1, \mu_2$ are (mutually) singular if there supported in $A_1, A_2$, such that $\mu_1|_{A_2}=0$ and viceversa
01:16
@geocalc33 hey :)
01:53
@robjohn :-)
@PenAndPaperMathematics hey
02:18
@copper.hat I thought I'd add a non-$\zeta$ view.
what's so great about real analytic planar foliations?
nothing. next question
what's so great about hypertopological spaces?
@geocalc33 Same answer. Next?
what's so great about isogeny classes of elliptic curves :(
so math is not great?
02:29
I'm just going to say that the answer to all of your questions is "nothing", because you are interested in uninteresting things. :P
Anyway, I need to get back to class.
I gotta get interested in interesting math...
so, here's a silly little thing. consider the following system of difference equations: $$v_{n+1}=v_{n}-r i_n,\quad i_{n+1}=i_n - g v_{n+1}$$
Anyone know good books which study the gamma function in a lot of depth?
mohan10216 you might try this survey paper arxiv.org/abs/1703.05349 and its references.
Thanks Leslie will take a look
I'm not looking for a complex analysis book which studies other topics but one that mainly focuses on the gamma function
02:39
any complex analysis book would likely introduce at least one or two formulas for it and establish its basic properties. articles in the monthly tend to be slightly more expository than textbooks.
and more focused.
I'm trying to study the gamma function to write about it for my EE
if you take an ansatz solution of the form $(v_n,i_n)=(v_0 \lambda^n,i_0 \lambda^n)$, you end up with the characteristic polynomial $\lambda^2-(2+r_1 g_2)\lambda+1=0$
then the product of the roots is 1 and their sum is larger than 2, so one of the roots will have magnitude larger than 1 and the other will be smaller than 1 (both are positive)
however, on physical grounds I'm only interested in a solution which goes to 0 as $n\to\infty$. so that means i want the root $\lambda\in (0,1)$
and if you work it out, that requires $v_0=R i_0$ where $R=r_1/2+\sqrt{r_1(r_1+4/g_2)}$
so, that's a simple enough exact solution
however, another approach is as follows. the $v_n$'s here denote the potential at nodes in a resistor ladder, each separated by resistors of length $\ell$
so that suggests converting this difference equation to a differential equation: $(v_{n+1}-v_n)/\ell = - (r_1/\ell) i_n\to dv/dx = -(r_1/\ell)i(x)$, $(i_{n+1}-i_n)/\ell = - (g_2/\ell) i_n\to di/dx = -(g_2/\ell) v(x)$
then $v''(x) = (r_1 g_2/\ell^2 v(x)$ has the decaying solution $v(x) = v(0) \exp(-\sqrt{r_1 g_2}x/\ell)$
and therefore $i(x) = -(\ell/r_1)v'(x) = \sqrt{g_2/r_1} v(0)\exp(-\sqrt{r_1 g_2 x/\ell}$
which means $v(0)/i(0) = \sqrt{r_1/g_2}$
now, i had a typo above: the earlier $R$ should've been $R=r_1/2+\sqrt{(r_1/g_2)(1+g_2 r_1/4)}$
so those two answers for $v_0/i_0$ disagree...except when $g_2 r_1\ll 1$, in which case they do agree
so...that's sorta weird
03:12
Anyone know of a math phrase that rhymes? Preferably not a quote.
03:56
How can I get the relation between: $x_n=\sum_{n=1}^\infty (-1)^{n+1}\frac 1n$ and its rearrangements of the type when one + is followed by k minuses?
For example: 1-1/2-1/4-1/6+1/3-1/8-1/10-1/12+1/5-...
04:11
"Pati,Patni and Woh(the three persons) were playing a game. At the beginning of the game Pati and Patni together had 100 % more money than Woh. Patni and Woh together had 300 % more than Pati. By the end of the game Pati and Patni together had 100 % more money than Woh had and Pati had 12.5 % less money than Patni and Woh together had. Finally Pati gained Rs.800 by the end of the game".
How to solve this problem?
I am getting to many variables for solving this problem.
it is cruel and unusual to give two people in a three-person word problem the same first initial
\begin{align*}
s_{4k}&=1-1/2-1/4-1/6+1/3-...+1/(2k+1)\\
&=1+1/3+...+1/(2k+1)-1/2(1+1/2+...+1/(3k))\\&
=\log (2k+1)+g+o(1)-1/2(\log k+g+o(1))-1/2(\log 3k +g+o(1))
\end{align*}
,where g is Euler-Mascheroni constant.
and this should give me: $\log \frac{2k+1}{\sqrt 3 k}+o(1)\to \log \frac 2{\sqrt 3}$
The only thing left however is to show that this rearrangement $(s_n)$ actually converges. If it does, then the sum is as given above.
Some generalization also seems plausible in terms of number of -ve signs following a + sign.
Oh, the convergence follows from the observation that: $s_{4k+i}-s_{4k}\to 0$ for all $i\in \{0,1,2,3\}$.
04:52
@leslietownes quietly rewrites problem involving people named Schiff, Schön, and Shah
@mohan10216 "Minimal criminal"
A proof technique equivalent to (strong) induction
To show that a certain property is true of all numbers, consider the smallest number that does not satisfy the property (the minimal criminal), and show that there exists an even smaller criminal
(note also that strong induction and weak induction are equivalent to each other)
Schulz, Scholz, Shultz, and Schuetz are playing a game
Schiff and Shah have a lifelong grudges against Shultz, but only if they're both together, and Schoen and Scheutz cannot be on the same team
05:08
Schwarz, Sylvestor and Sylow also join the game.
the multiple choice exam used by american law schools has (or had) a section on logic puzzles with people in them. they always named them things like Ann, Bill, Carl, and Diane. they could have ruined the average by naming them Schultz, Schulz, Sholtz, etc
05:30
Saoirse, Tighearnach, Ultan
@robjohn I noticed that the Wikipedia article on the Fourier transform says that Plancherel's theorem holds if $f$ and $g$ are both integrable and square-integrable functions on $\mathbb{R}$.
Isn't the square integrability of both functions and the convergence of $\int_{\mathbb{R}}f(x) \overline{g(x)} \, \mathrm dx $ and $\int_{\mathbb{R}}\hat{f(\xi)} \overline{\hat{g(\xi)}} \, \mathrm d \xi $ enough?
Having $f,g \in L^2$ is sufficient.
@copper.hat That's what my old PDE textbook says, too. But every source seems to say something a little bit different.
The proofs I am aware of show it holds in $L^1 \cap L^2$ and extend to $L^2$ using uniform continuity.
05:51
I think I was misinterpreting what the article meant by "integrable." I now assume they meant in $L^{1}$, which a lot of sources state if they don't want to get into why it can be extend to functions that are only in $L^{2}$.
@leslietownes You left me out!
06:07
@robjohn Nevermind. For some reason I was wasn't interpreting "integrable" as meaning being in $L^{1}$. Like most sources, it just doesn't' explain that the theorem can be extended to functions that are only in $L_{2}$.
06:50
ted: i missed an opportunity there.
07:11
my life is one big missed opportunity.
07:39
thankfully there's still time to invest in lesliecoin.
08:35
@Koro it's not clear what the order of the terms are supposed to be.
@robjohn I meant 1 odd denominator term followed by 3 negative terms (with even denominator) of the original series.
$\sum_{k=1}^\infty(\frac 1{4k-3}-\frac 1{6k-4}-\frac 1{6k-2}-\frac 1{6k}+\frac 1{4k-1})$
nope, it's too late to edit now.
@robjohn: in the expression for $s_{4k}$, I rearranged the terms as they are only finite in number then tried to use $H_n=\ln n+\gamma +o(1)$.
$\sum_{k=1}^\infty (\frac 1{2k-1}-\frac 1{6k}-\frac 1{6k-2}-\frac 1{6k-4})$
hmm, the description of the series looks ok now.
09:48
@Koro Then the sum is $\frac12\log\left(\frac43\right)$
Which is what you got
10:00
yes.
In general, we should get: $\ln (2\sqrt \frac pn)$, where $p$ is the 'number positive terms' and n is the 'number of negative terms'.
@robjohn: is this a psq?
@Koro It is.
I deleted my apparently wrong answer already. Thank you professor @Robjohn.
10:16
Since $(4)$ from this answer says $$ \sum_{j=1}^{m-1}H_{-j/m}=-m\log(m) $$ We can write your sum as
$$ \begin{align} &\sum_{n=1}^\infty\left(\frac1{2n-1}-\frac1{6n-4}-\frac1{6n-2}-\frac1{6n}\right)\\ &=\underbrace{\sum_{n=1}^\infty\left(\frac1{2n-1}-\frac1{2n}\right)}_{-\frac12H_{-1/2}} -\underbrace{\sum_{n=1}^\infty\left(\frac1{6n-4}-\frac1{6n}\right)}_{-\frac16H_{-2/3}} -\underbrace{\sum_{n=1}^\infty\left(\frac1{6n-2}-\frac1{6n}\right)}_{-\frac16H_{-1/3}}\\ &=\log(2)-\frac12\log(3) \end{align} $$
r9m
r9m
11:06
I hate it when people bump ancient posts and make me fix it .. only to leave a downvote along the way .. -_-
11:35
I am looking for algorithm that allow random selection. there's CDF, but what I don't understand is does it work with duplicate data like say i have 200 pairs like {orangle, 2 }, and 300 {apple, 10}
will CDF work or it requires unique data like a single apple and a single orange of some weight
in my case I have duplicate weights of different items like 20x{orange,2} 10x{apple,10}, 20x{banana,2}
12:11
@AkivaWeinberger Singular means singular with respect to Lebesgue measure here
It basically means that if you take distribution of such probability measure, then it has derivative equal to 0 almost everywhere
 
2 hours later…
14:13
Let $\Phi$ be a root system for a reflection group $W$, let $\Pi \subset \Phi$ be a positive system, and let $\Delta$ be a simple system in $\Pi$. I know that if $\alpha \in \Delta$, then $s_{\alpha}(\Pi \setminus \{\alpha \}) = \Pi \setminus \{\alpha \}$. My question is, is it also true that $s_{\alpha}(\Delta \setminus \{\alpha\}) = \Delta \setminus \{\alpha \}$?
I feel like it should be true; maybe it has to do with the fact that positive systems contain unique simple systems...
But I can't spell it out...
14:41
I got bored while writing my EE and decided to write a poem. Have a read:
Long. Ugly. Complex. Tedious
We looked at each other with undisguised disgust
You sat there. Plain and menacing with those sharp curves
Quotient
We battled for every moment of every undying hour
You always had the upper hand
But you are incomplete because Gödel said so
I am human. I live. I am complete. You are incomplete
Weak
Longer. Uglier. Complexer. Acrid
You didn’t wait for me
Couldn’t. You were eager to be explored.
Euler. Newton. Lagrange. Bernoulli. Feynman. Ramanujan
You ran with them but left me behind
Why?
Am I yet to reach antiquity?
Will I ever?
Bitter
But you gave birth to a gem. Bernoulli
For better or worse we coexist. Survive
You stood upon the shoulders of giants
You made the gem of gems
Equal to z minus one factorial
Duplication. Reflection.
You are beautiful
Complex
Complete. Incomplete
Gay
I will never be complete
I was wrong. Left. finally
Cheers
You don’t get it do you?
Glad
Imagine there are spaces between each of the messages.
Helps when reading
@user193319 Is this algebra?
@Jakobian Sort of, yes. It's related to a HW question from a course on Reflection Groups and Coxeter Groups.
I just posted my question to MSE.
 
3 hours later…
17:57
A closed subset of $\Bbb{R}^2$ includes its own boundary.
I got exercise where there is this set $\Bbb{R}^2\cross [-1,1]$. I think infinity is boundary because there is nothing beyond infinity. Am I guessing this correct? So is this set closed?
It is not bounded but I think it's closed.
Sorry it's not \cross it's \times.
I think I am using very informal text. Should I go into topology to learn this?
$\Bbb{R}^2 \times [-1,1]$ is closed in what space? What's the underlying space? $\Bbb{R}^3$? Yes, you should definitely learn topology---very widely used in all mathematics.
In R2
$\Bbb{R}\times [-1,1]$ in R2 sorry.
18:14
closed, boundary $\mathbb{R}\times \{-1, 1\}$
18:44
@WilliamJohn It's closed when $\Bbb{R}^2$ is given the product topology because $\Bbb{R}$ and $[-1,1]$ are closed in $\Bbb{R}$ with the standard topology and when you take their cartesian product, you get a closed set.
19:41
I suspect product topology is too fancy at this point. There’s no such thing as infinity, @WilliamJohn.
19:52
@TedShifrin Pft... there are at least 18 different kinds of infinity, bruh!
Why you be hatin'?
Simplify life. Dump ‘em!
huh?
Dump who?
Context is clear. The “at least 18 kinds of infinity.”
20:09
right, thanks
yeah, we don't need 'em. maybe they need them in france.
♾️ != ♾️
infinity au gratin
sometimes an unnatural number of natural numbers are stuffed into infinity
where != means "is not equal to"
no, it means surprised equals
20:16
:D
what, really??? you're equal?
$\infty \ne \infty = \infty$.
@copper.hat They serve that for dinner at Hilbert's hotel.
Some people put a question mark over the equals sign for "are these equal"
Au gratin is very 60s, but it can still be good in the right hands.
Also over the inequality symbols <, >
as a sentence that needs to be checked to see if it is true
it comes in handy for word problem solving
20:26
@TedShifrin Potatoes au gratin is a simple dish that I often throw together when I am too lazy to make real food.
I tend to make it with a Oaxacan melty cheese, lots of cumin and paprika, and enough cayenne to give it some kick.
10 minutes to prep, an hour to bake, and there's food for a couple of night. Yay!
@XanderHenderson so, infinity is both equal and not equal to itself?
Good luck trying to explain that to a student :-)
@user2236 Yes. And also no.
@XanderHenderson I'm more of a traditionalist, but the basics, if not the spices, are timeless! Awesome dish! I also will only eat homemade macaroni and cheese. Thumbs up! It's a meal in itself!
Agreed on mac ‘n cheese. So simple to make a béchamel and use a few freshly grated cheeses :)
@TedShifrin Indeed!
20:37
@amWhy Mac and cheese used to be a goto, but getting pasta out here in rural America can be a pain in the but. I used to be able to go into WinCo and get 5 lbs of whole wheat elbow macaroni out of the bulk bin for about 18¢. Here, an 8 oz box of a similar product is five bucks. :(
Now I often put panko on the top if I’m baking.
@TedShifrin I use matzoh meal for the same purpose. :D
@XanderHenderson Wow!
(to be clear, I am exaggerating for effect, but food here is expensive)
I don’t use matzo meal enough to keep it around.
20:39
@TedShifrin Baked macaroni and cheese IS what I mean by home-made macaroni and cheese! :D
Food is inflating everywhere here. Of course, the Rethugnicans won’t lift a paw to help cuz …
Sometimes I don’t bother baking if I make just a serving for me.
My oven sets off the smoke alarm in the apartment:(
Strange, why?
I mean if there's no smoke.
@TedShifrin It really is inflating. I help out twice a week at a local food pantry. In wisconsin, amount of "foodstamps", since they were no longer boosted by the Feds, after Sept. 2021... have not been adjusted by the state, to accommodate food inflation. And because many families have less to work with (due to inflation), donations have been down, as well.
@TedShifrin I'm with you on this. Cooking for only oneself can diminish the fun of cooking a meal, unless one plans to eat it for the next four days!
7.25% inflation (based on CPI). Everything is getting more expensive. :(
But I am also paying an additional "rural tax".
Blame the pandemic, also.
@XanderHenderson That sucks!
I think the airline industry was the hardest hit, financially.
@user2236 food service, hugely, as well; particularly small business restaurants...
True true
@amWhy So many restaurants have died in the pandemic.
I mean, restauranting is risky in the first place (most places close up shop in the first year), but... wow...
The coffee shop where I wrote my phd thesis had been around for 30 years, and did in the pandemic.
And some poor bastard tried to open up a coffee shop here in January of 2020. That didn't last long at all.
I have to drive 90 miles to get a decent macchiato.
@user2236 Yup.
20:57
:-)
Staaahp
we're gonna get flagged
By whom? And who do you think is going to handle those flags? :P
who knows who's lurking around
and let's not go there :-)
Btw, the speed of light used to be labeled as infinity.
c =♾️
Which is why $\infty \ne \infty = \infty \overset{?}{=} \infty$.
2
As copper.hat suggested, just add some cream and cheese, and bake for an hour (covered) at 350°F. Infinity au gratin sounds lovely.
It's an abuse of notation.
Everything is an abuse of notation.
Notation lives to be abused.
21:10
Use and abuse.
@XanderHenderson Bake cheese and cream for an hour...? aren't you missing sliced potatoes?, if it is to become au gratin?
But, hey, maybe infinity au gratin works too!!
@amWhy Nonono... you have sliced $\infty$.
Who, here, has picked up on Wordle, and/or nerdle?
Which is why it is infinity au gratin.
@XanderHenderson How much cream and cheese is required?
21:13
Have you tried Semantle?
:: caution::
@amWhy Quite a lot. All of it, in fact.
And then some more.
Hah!
@amWhy You forget that the “au gratin” has nothing to do with potatoes, but rather refers to the browning with sauce and cheese!
I do better with Wordle in French than in NYT/English.
Okay. Yes, the sauce is the mainstay, mixed with "come what may" ... You must forgive me, but my French vocabulary is very basic.
@TedShifrin Wow! That's impressive. @leslie and I, will take on you and robjohn in english workle, any time! (I just volunteered you, @leslie!)
@TedShifrin Were you native to France? or have you mastered the language?
*english wordle
Sure, @user2236 ! Why not? :-)
21:30
I majored in French in college. But I was incredulous that nurse was the answer to one of the French ones. Who knew!
It took me seven tries for yesterday’s English one, despite having 4 letters!
@TedShifrin Yesterday's game ... I had four letters after try 2, but there were five letters that made reasonable words! SHA_E (shave, shape, shame, shake, shade!)
You forgot shale. That was my sixth!
@TedShifrin Ahh, yes, I missed that. I mean, I think I felt "on top of things" figuring out all the letters save for the fourth, the next choice felt like throwing a die, 1-6.
21:39
Yeah, the most frustrating one I’ve done.
you could have guessed 'vapid' or 'valid' and ruled out three letters in one go. i realize some people don't like to do this.
I did that sort of thing today. Still took me 5 tries.
yeah, if you do it in general, you're maximizing completion but usually also taking longer to get there.
I knew which vowels and had eliminated almost all consonants.
@leslietownes but I got yesterdays in three! But you are right, if the aim is to maximize completion, those would have have helped, but they don't rule out shave or shake!
I think the overall goal is to extend a streak of success. Or overall percentage of successes.
21:47
Success means within 6?
yes, ted. it doesn't let you guess more than six. some of us are well acquainted with this mechanism.
Yes, I believe so. I see my percentage of "wins/success/ #of games"
@leslie Note: user2236 notes above about a game, Semantle
Yeah, OK. I’ve only failed once, but I want my mean below 4 if I can.
that's what my friend tracks. average number of guesses.
which forces you to place those letters early.
my mean is only barely below 4.
Oh great. Putin about to blow up the world.
21:51
@TedShifrin Oh, damn!
3 of my 4 grandparents came from what is now Ukraine.
@TedShifrin Two of my great grandparents came from what is now Ukraine. You clearly have a closer connection. But I've been a champion of its freedom from USSR!
Putin has got the gangsta look down pat.
unlike trumpet
Well, they fled before the USSR was formed. I dunno the history well enough.
@user2236 trumpet is ultimately, irrelevant, save for the fact that he played kissy face with Putin.
21:58
he's a business thug through and through
Quickly running out of rope.
A judge just ruled he can be sued for what he created on 1/6.
yup, he's getting audited soon
@TedShifrin That may be. Perhaps I'm thinking of the "Soviet Block", which was first challenged, and overcome, by polish leader google.com/…
Lech Walensa
I had forgotten that the USSR was formed only in 1922. They fled just before the revolution.
Did they come straight to America?
22:03
Yes, more or less. NYC.
Fourth one from Poland.
coolio
hasnt the Russia-Ukraine thing been going on for ages
why is it suddenly so important
even in gorbachev's time they were crushing ukraine
I remember vividly, when 5 years old, television footage of the destruction of the Berlin wall.
@BalarkaSen Because they have been an independent nation for some time, russia wants again, some sort of Iron Curtain. I fear for Finland, as well.
The Ukraine is like Pakistan.
minus the religious division
@TedShifrin Not most of them, I mean Ukrainians. But I am entirely impressed at how academics in the US and England, sponsored countless academics: scientists, mathematicians, philosophers, who were Jewish, or Jewish sympathizers, during World War II.
22:12
its probably because of that new natural gas project that this thing is getting so much attraction from western media
Nord Stream I think
yeah, money always plays a role
22:25
a mark, a yen, a buck or a pound
That clinking, clanking, clunking sound
Is all that makes the world go 'round
It makes the world go 'round!
@amWhy Sorry, I was referring just to my own grandparents :P
Hi all!
Hello and welcome :-)
@TedShifrin No problem!
I'm confused about a relatively simple geometry problem, if anyone could help.
I have a ball in a triangle. Which wall will the ball hit?
I modeled the ball and its velocity vector with a parametric line, and same for the triangle's sides. Then I solved for $t$ for each side, thus getting $t_1, t_2, t_3$.
Then, if $min(t_1,t_2,t_3) = t_1$, the ball would hit Wall 1.
If $min(t_1,t_2,t_3) = t_2$, the ball would hit Wall 2.
And so on and so forth.
Here's how it looks in Desmos:
22:39
ANR's are like manifolds of algebraic topology, right?
As you can see, one would expect the ball to hit the green side.
In other words, we should have $\min\left(t_{1},t_{2},t_{3}\right)=t_3$
Instead, my math gives $\min\left(t_{1},t_{2},t_{3}\right)=t_2$, predicting the ball will hit the blue wall.
What am I doing wrong?
Here's the link to all my calculations:
Any help would be appreciated.
rb: i'm not going to look at the code but if v_0 is pointing toward the green wall, you oughta get a negative value for t when you solve for when it hits the purple wall, and min( ) might pick that out. you want the minimum positive t if v is pointing in the direction of where the ball is going.
v_0 looks nearly parallel to the blue line but if it's not, it could be it's also intersecting somewhere way way 'below' this image corresponding to a huge negative value of t and that value is winning the min( )
@leslietownes OK, I'm reading your feedback. Please give me a sec.
if you have it print out the t's, it wouldn't surprise mei f there's a huge negative one, a slightly negative one, and then a positive one of about the same size as the negative one
you want the positive one
Hi @leslietownes Indeed, one of my $t_n$ is negative, but it's $t_2$, which is the blue wall:
There's two positive values, and if I take the min of only the positive values, I get $t_1$, which is the purple wall!
22:48
in your data structure that stores the velocity, are you using the vector from the point labeled p0 to the point labeled v0?
if v0 and p0 are being stored in a 'point' object of the same type and you're just using the entries of v0, that could also be doing it
@leslietownes Thanks for the idea. Here's how I'm storing $P_0$ and $V_0$
@Jakobian They're sets that have a tubular neighborhood. Not necessarily manifolds at all, but sets of positive reach.
I should add that there's no code in the link. It's just math equations (in Desmos).
rb: when you say value of "t," are you parametrizing this stuff so that you're solving for the t that makes p_0 + t v_0 lie on the colored line?
Yes, exactly. To my understanding, that would correspond to a ball physically "colliding" with a "wall" (side of the triangle).
Here's a quick diagram that shows how I derived the equations for $t_1,t_2,t_3$ by solving for when $P_0+t*V_0$ is on the sides of the triangle:
22:55
yeah, so you should get a negative value when you look at the purple wall. i'd check for typos somewhere.
Hm, OK, why don't I change the direction of the velocity, and see what happens?
The correct answer now would be that the minimum time is $t_2$, which is the blue wall
Let's check the results:
Nope, same problem. Getting $t_3$ as min again.
try an example where v_0 isn't nearly parallel to one of the sides. try v_0 = (0,1) or something.
00:00 - 23:0023:00 - 00:00

« first day (4216 days earlier)      last day (1102 days later) »