« first day (2818 days earlier)      last day (591 days later) » 

4:02 AM
1
Q: Length of a product of conjugates of an element in a free group

user45392Let $F$ be a free group generated by a set $S$. For $g\in F$, let $l(g)$ be the length of $g$ with respect to $S$. Now for $a\in G$ and $g_1,\dotsc,g_n\in G$, let $$T=g_1^{-1}ag_1g_2^{-1}ag_2\dotsm g_n^{-1}ag_n.$$ What can we say about $l(T)$ in terms of $l(a)$? Is it known that $l(T)\geq l(a)$?...

3
Q: Topology change induced by small perturbation

dennisConsider the surface $S_{\epsilon}$ defined as: \begin{align} %S&=\{\vec x \in \mathbf{R}^3: x=0\}, \\ S_{\epsilon}&=\{\vec x \in \mathbf{R}^3:f_{\epsilon}(\vec x)\equiv\epsilon ((x^2 + y^2 - 4)^2 + z^2 - 1) + x=0\}. \end{align} The topology of $S_{\epsilon}$ is $\mathbf S^2$ when $\epsilon$ is s...

 
4:20 AM
6
Q: Is running an R code inside a function faster?

MasoudThe question is: Does R code run faster in a function? Consider following examples: > start<-Sys.time() > for(i in 1:10000){} > Sys.time()-start Time difference of 0.01399994 secs > > fn<-function(){ + start<-Sys.time() + for(i in 1:10000){} + Sys.time()-start + } > fn() Time difference of...

 
4:50 AM
1
Q: Solve system of logical equations

ahdamI need a general method for solving systems of logical equations like: $$ \begin{equation*} \begin{cases} c_{0} = a_{0} \land b_{0}\\\\ c_{1} = a_{0} \land b_{1} ⊕ a_{1} \land b_{0}\\\\ c_{2} = a_{0} \land b_{2} ⊕ a_{1} \land b_{1} ⊕ a_{2} \land b_{0}\\\\ c_{3} = a_{1} \land b_{2} ⊕ a...

 
 
1 hour later…
6:18 AM
0
Q: QtWidgets is not defined

Baldomero123This is my code. The error appears in what I mark in bold: GestorInventarioAplicacion=QtWidgets.QWidget, and also in class GestorInventarioAplicacion(QMainWindow) and in the end main() from inspect import ArgInfo import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtWid...

 
 
7 hours later…
1:30 PM
0
Q: Fixing a game that makes 30 pixels that slowly bounce around and change color (like the dvd logo)

user265279In this code, it creates 30 different squares, each colored differently but evenly. Red squares turn green to red, green turns blue to green, and blue turns red to blue. The eventual outcome should be that only 1 color is left, however i keep ending up with 2 blue squares, that no matter how many...

 
 
1 hour later…
2:54 PM
0
Q: Get value from Js and bind to a json data attribute in cshtml

DebaparnaI have a requirement to get client side data in json and pass the json in a data attribute in cshtml. Then will read the values from the data attribute. <div class="container" data-attribute="{Json}"> This above json will contain the data from client side (collected using js). Any suggestion on...

 
 
1 hour later…
4:04 PM
2
Q: Trigonometric Diophantine equation

Veronica PhanIs there a general method to solve the equation $P(x_1,x_2,...,x_n)=0$ with $P$ is a polynomial in $n$ variables with integer coefficients and $x_k=\cos(q_k\pi)$ with $q_k$ is a rational number? This type of equation appears in the problem of classifying all tetrahedra whose dihedral angles are m...

 
5:00 PM
0
Q: ggplot2 stat_summary transforms data first, which labels errorbars wrong in logarithmic scale

Jordan LauI have a matched "pre" and "post" dataset and would like to plot geometric mean and SD in a line plot in the logarithmic scale (see figure below). Since the stat_summary() function transformed the data and then did the calculation, the geometric mean and SD plotted in the left figure were incorre...

 
 
3 hours later…
7:32 PM
4
Q: Day and Lack's "Limits of small functors": Lemma 2.3

Roald KoudenburgI've been trying to understand the (4 line!) proof of Lemma 2.3 of Limits of small functors, on small functors into copresheaf categories $\mathbf{Set}^\mathcal C$. To me it seems to be using that the functor $\mathbf{Set}^\mathcal C \to \mathbf{Set}^{\text{ob } \mathcal C}$, defined by precompos...

 
7:54 PM
0
Q: Xcode: Can I set the name of the generated IPA file?

stacktrace2234I have a user-defined attribute that I set for CFBundleName: <key>CFBundleName</key> <string>$(APP_DISPLAY_NAME)</string> APP_DISPLAY_NAME == THIS IS MY APP <-- it is the app name that I can see on my iPhone after I installed the app, The problem is that also the IPA file name will be THIS IS MY...

 
8:28 PM
2
Q: Elementary Number Theory : Prime

Right_NoProblem : Determine all twin primes $p$ and $p+2$ for which $p(p+2)-2$ is also prime. First, $3$ and $5$ are primes and $3*5-2=13$ is also prime. Assume that $p=3m+n$ $(n=0, 1, 2)$ and 1$\leq$m. i.e. $p>3$ Then $n$ cannot be $0$ since $p$ is prime. And $p$ cannot be $3n+1$ since $(3n+1)+2=3(n+1)$...

 
 
2 hours later…
10:02 PM
6
Q: Mutate column values to NA whenever column name occurs in different column

user321797Suppose I have the following (simplified) data frame: set.seed(123) df <- data.frame("extracolumns" = rep("random", 6), "which.x" = c("x1", "x2", "x3", "x2", "x3", "x1"), "which.y" = c("y2", "y2", "y2", "y1", "y1", "y1"), "which.z" = c("z3", "z3", "

 

« first day (2818 days earlier)      last day (591 days later) »