« first day (3071 days earlier)      last day (338 days later) » 

12:16 AM
2
Q: Make a list of the first 100 primes, keeping only ones whose last digit is less than 3

Aislin_367This is a question from an "Elementary Introduction to the Wolfram Language" Section 28: Tests and Conditionals. We are asked to "Make a list of the first 100 primes, keeping only ones whose last digit is less than 3." I think it should look something like this: Select[Prime[Range[100]], f[#]<3 &...

 
 
5 hours later…
4:46 AM
2
Q: Homotopy type of the geometric realization of a poset

MarcosConsider a set of $n$ elements $S=\lbrace 1,\dots,n\rbrace$ and $\mathcal{P}(S)$ to be the power set of $S$, which is a well-defined poset with respect to the inclusions. Now consider $\emptyset\neq T\varsubsetneq S$ and define $A=\lbrace \emptyset\neq U\in\mathcal{P}(S)\mid T\nsubseteq S\rbrace$...

 
 
1 hour later…
6:16 AM
6
Q: Can two different lambdas (that have the no capture, and the same args and body) decay to the same function pointer?

BenI have this code: #include <cassert> #include <type_traits> int main() { auto f0 = [](auto x) { return x; }; auto f1 = [](auto x) { return x; }; static_assert(not std::is_same_v<decltype(f0), decltype(f1)>); // MSVC Release-mode combines the functions so the pointers are th...

 
 
5 hours later…
11:34 AM
3
Q: Upper bound for Hall's conjecture on separation of squares and cubes

Stanley Yao XiaoHall's (weak) conjecture is the statement that for all $\varepsilon > 0$ there exists a positive number $c(\varepsilon) > 0$ such that for all $x,y \in \mathbb{Z}$ with $y^2 \ne x^3$, that $$\displaystyle \left \lvert y^2 - x^3 \right \rvert \geq c(\varepsilon) |x|^{\frac{1}{2} - \varepsilon}.$$ ...

 
 
3 hours later…
2:52 PM
0
Q: I don't understand the combination of an R code

li jiaqiI am reading the https://stats.oarc.ucla.edu/r/dae/ordinal-logistic-regression/. There is a part of codes that I could not understand. In the following codes, what is the role of with(dat, summary(as.numeric(apply) ~ pared + public + gpa, fun=sf))? I know qlogis(), but I could not understand what...

 
 
3 hours later…
6:10 PM
3
Q: Cauchy-Schwarz Like inequality with a power p term

Orso ForghieriWe set : $\phi_1, \phi_2 : \mathbb{R} \mapsto \mathbb{R}^M$ with compact support $\theta \in \mathbb{R}^M$ non-zero, $\theta_{p-1} = (sign(\theta_i)|\theta_i|^{p-1})_{1 \leq i \leq M} \in \mathbb{R}^M$ with $p \geq 2$. We assume that the matrix $$ \int_\mathbb{R} \phi_1 \phi_1^T - \int_\mathbb...

 
 
3 hours later…
9:10 PM
6
Q: Is there a way to get all files in a directory recursively in a concise manner?

menfonI mean usable in one-liners. For example this: raku -e 'dir(".")==>say()' prints all files and directories in the current directory. How do I update it so it works recursively (without libraries and/or user-defined routines)? Or is it not possible? I saw the :recursive flag mentioned somewhere, ...

 

« first day (3071 days earlier)      last day (338 days later) »