« first day (2771 days earlier)      last day (617 days later) » 

12:07 AM
2
Q: Is there a Latin word for 225th anniversary?

Michael BarnettIf bicentennial is the Latin word for the 200th anniversary, what word would one use for the 225th anniversary?

 
12:22 AM
2
Q: Relationship between KL, chi-squared, and Hellinger

jack412There are many well-known relationships between the KL divergence, chi-squared ($\chi^2$) divergence, and the Hellinger metric. In the paper "Assouad, Fano, and Le Cam" by Bin Yu, the author appears to use the following relationship (see Example 2, p. 433): $$ \text{KL}(f,g) \le \int \frac{(\sqrt...

 
 
2 hours later…
1:55 AM
9
Q: Cartesian - polar conversion couple

Luis MendoWe don't have a challenge for conversion between Cartesian and polar coordinates, so ... The challenge Write two programs (or functions) in the same language: one that converts from polar to Cartesian coordinates, and the other from Cartesian to polar coodrinates. The score is the sum of the tw...

 
 
3 hours later…
4:52 AM
8
Q: Complexity of counting regions in hyperplane arrangements

Igor PakLet $H_1,\ldots,H_n$ be hyperplanes in $\Bbb R^d$. Denote $\mathcal{H} :=\{H_1,\ldots,H_n\}$ and let $c(\mathcal{H})$ be the number of regions in the complement: $\Bbb R^d\setminus \cup H_i$. Question: What is the complexity of computing $c(\mathcal{H})$? Here we are assuming that $H_i$ are defi...

 
 
3 hours later…
7:52 AM
6
Q: Code not compiling when template functions are placed in a certain order

RicardoThe following program compiles successfully. template<typename T> T sum(T x) { return x; } template<typename T, typename... Args> T sum(T x, Args... args) { return x + sum(args...); } int main() { sum(1, 2, 3, 4, 5); } However, when I switch the order in which the template fu...

 
8:10 AM
6
Q: why 'not(True) * True' does not give me an invalid syntax error, just like 'True * not(True)'

jose rosalesIs this a consequence of the hierarchical order of operators in python? not(True)* True #False True* not(True) #SyntaxError: invalid syntax

 
 
6 hours later…
1:54 PM
4
Q: Is there a cryptographic algorithm that can make a "lottery ticket"?

mherzlWith public-key cryptography, I know Alice can "seal" a message that only Bob can open. But in that case, Alice knows the message that she is sealing. What if Alice wants to seal a random number which she doesn't know? Could she could seal it such that only Bob can determine it, not Alice? Here, ...

 
2:06 PM
2
Q: Are the positive irrational numbers closed under addition?

pyridoxal_trigeminusAre the positive irrational numbers closed under addition? Clearly this is not the case for all irrational numbers, e.g. $\sqrt 2 + (- \sqrt 2)$ but what about all irrational numbers $x > 0$? Intuitively I would think it is closed, but maybe there is some weird counterexample. An alternative form...

 
 
3 hours later…
5:22 PM
2
Q: Normal schemes and Serre's criterion

fish_monsterSerre's criterion says that for a scheme to be normal is equivalent to it being $R_1$ (i.e. regular in codimension $1$) and $S_2$ (i.e. regular functions on $X-Y$ extend to $Y$ if $Y$ has codimension at least $2$). What would be examples of: a scheme which is $R_1$, but not $S_2$ (i.e. not norma...

 
 
4 hours later…
9:16 PM
0
Q: if statement doesn't work after upgrading to PHP 8.1

dajana.sI unfortunately need to upgrade to PHP 8.1 (from 7.4) and that brings some changes (and unfortunately error messages). I'm not a programmer, but always got along with customizations so far, as I could see connections and adapt codes well. I am now concerned with the following current example-code...

 
 
2 hours later…
11:10 PM
1
Q: Comparing function to variable in R

EisenI have the following code which generates the error Error in a == dplyr::mutate : comparison (1) is possible only for atomic and list types a <- dplyr::mutate a == dplyr::mutate How can I check that this is TRUE in R?

 

« first day (2771 days earlier)      last day (617 days later) »