« first day (2043 days earlier)      last day (1360 days later) » 

1:00 AM
3
Q: Given two positive integers, its least common multiple is bounded by its product.

Celine HarumiLet $a,b\in\mathbb{N}$ be nonzero. Does $LCM(a,b)\leq ab$? I don't see how it can fail. So I believe it is correct. Can you give me any feedback?

 
 
15 hours later…
3:49 PM
7
Q: Why is it illegal to bind an r-value to a const l-value reference in special member functions?

ArqubusierFor function parameters, it is possible to bind an r-value to an l-value const reference. However, this does not seem to apply to special member function like the copy-constructor, and copy-assignment operator in C++11 and C++14. Is there a motivation for this? When using C++17, it is possible to...

 
4:18 PM
7
Q: What is the fastest way to check the leading characters in a char array?

AliI reached a bottleneck in my code, so the main issue of this question is performance. I have a hexadecimal checksum and I want to check the leading zeros of an array of chars. This is what I am doing: bool starts_with (char* cksum_hex, int n_zero) { bool flag {true}; for (int i=0; i<n_zero; +...

 
 
1 hour later…
5:36 PM
3
Q: Probability of complex eigenvalues

prostiI find this is the best site to post this question, even though I considered cs. It is a Monte Carlo experiment over the set of 10.000 n×n matrices. If a single matrix eigenvalue is complex then python numpy package will return all the eigenvalues as numpy.complex128 type, else it will return all...

 
 
1 hour later…
6:48 PM
7
Q: Keep top 3 values in a row, change everything else to NA

Vaibhav SinghUsing mtcars for reproduciblity (This is a row operation). I want to keep 3 values in a row based on their magnitude (so basically top 3 values would be having value, rest everything change to NA) I tried using pivot_longer converting to long then filtering but problem is I want to convert again ...

 
 
5 hours later…
11:48 PM
3
Q: Is there a point in 6-dimensional space satisfying these polynomial inequalities?

BPNI would like to know if there is a point $(a, b, p, q, x, y) \in [0,1]^6$ satisfying the following collection of inequalities. $b \ge a$ $q \ge p$ $y \ge x$ $a \ge p \ge a^2$ $b \ge q \ge b^2$ $p \ge x \ge a p$ $q \ge y \ge bq$ $x \ge 2p - a$ $y \ge 2q - b$ $a^3 -3ap + 2x \ge 0$ $b^3- 3 b q +2 y ...

 

« first day (2043 days earlier)      last day (1360 days later) »