« first day (2693 days earlier)      last day (692 days later) » 

1:34 AM
3
Q: Has the following problem, resembling the lonely runner conjecture, been studied?

Arsenii SagdeevGiven $n$, what is the smallest value $\delta_n$ satisfying the following: For any group of $n$ runners with constant but distinct speeds, starting from the same point and running clockwise along the unit circle, there exists a moment, at which the length of each of $n$ empty circle segments be...

 
 
3 hours later…
4:28 AM
1
Q: How would you work out this integral as a series?

zoobyThe integral is: $$f(a) = \int\limits_{-\infty}^\infty \frac{x e^{-a^2 x^2}}{\tanh(x)}dx$$ which seems to converge for all $a>0$. But I don't know how to get a sense of the function $f(a)$ such as writing it as a convergent series. The usual Taylor series has infinity for each term. Any ideas? Ed...

 
4:58 AM
8
Q: Weird datetime.utcnow() bug

Eugene YarmashConsider this simple Python script: $ cat test_utc.py from datetime import datetime for i in range(10_000_000): first = datetime.utcnow() second = datetime.utcnow() assert first <= second, f"{first=} {second=} {i=}" When I run it from the shell like python test_utc.py it finishes w...

 
 
2 hours later…
6:28 AM
2
Q: Image of a quadratic form is a closed cone

Eduardo LongaLet $Q : E \to F$ be a quadratic form induced by a symmetric bilinear form $B : E \times E \to F$ defined in a finite dimensional real normed vector space $E$, with values in the normed vector space $F \supseteq E$ (continuous inclusion). I already know that the image $C= Q(E)$ is a cone in $F$. ...

 
 
6 hours later…
12:46 PM
1
Q: Adding/removing covariates in lmer?

Olivia ChanI am trying to add covariates in lmer, but I do have difficulty with figuring that that, can anyone help me out with this? I have this happy_plot = lmer(happy_score ~ life_quality +(1|subject), data) as my original code with no covariates. My question is what should I do if I want to add age, ge...

 
 
7 hours later…
7:58 PM
0
Q: Search a pattern word from multiple files and concatenate whole lines in a new file

InterestingManI have several data files. For example sales.txt (the original file has 13 columns) Date Unit $$ employee# abc def jkl mno pqr Dec1 10 500 2 1 2 3 4 5 Dec2 12 450 3 6 7 8 9 10 Dec3 13 550 3 11 12 13 14 15 Dec4 15 600 3 16 17 18 19 20 ... ... supply.txt (original one has 3 columns) Date Unit co...

 
8:17 PM
6
Q: How come std::initializer_list is allowed to not specify size AND be stack allocated at the same?

gladesI understand from here that std::initializer_list doesn't need to allocate heap memory. Which is very strange to me since you can take in an std::initializer_list object without specifying the size whereas for arrays you always need to specify the size. This is although initializer lists internal...

 

« first day (2693 days earlier)      last day (692 days later) »