Reputation
705
Top tag
Next privilege 1,000 Rep.
Create new tags
Badges
2 16
Newest
 Nice Answer
Impact
~39k people reached

Aug
5
comment Can you complete the expression $2 \underline{ }\, \underline{ }\, \underline{ } \,\underline{ } 5 = 2015$?
@immibis Perhaps I can state premptively that I am aware that eval should be avoided in most situations, but that I think this is a proper usage of eval.
Aug
5
comment Can you complete the expression $2 \underline{ }\, \underline{ }\, \underline{ } \,\underline{ } 5 = 2015$?
@hvd Incredible, I updated the answer slightly to match the question. I just ran the code for 4 slots but unfortunately no solution exists.
Aug
5
revised Can you complete the expression $2 \underline{ }\, \underline{ }\, \underline{ } \,\underline{ } 5 = 2015$?
added 324 characters in body
Aug
5
answered Can you complete the expression $2 \underline{ }\, \underline{ }\, \underline{ } \,\underline{ } 5 = 2015$?
Jul
8
awarded  Nice Answer
Jun
3
comment Name of the highest power of 2 smaller than or equal to a given number
Even shorter (but perhaps less clear): power of 2 below, would only use this in speech, not in a definition: 'Here we have 16, the power of 2 below 18'. You may want to include 'greatest' and if you are talking about 16, just state that it is a power of 2.
Feb
19
revised What happens when square root is performed in inequalities?
It was already implied that this was the positive half of the solution, but now it is mentioned explicitly
Feb
19
suggested approved edit on What happens when square root is performed in inequalities?
Dec
10
comment Expectation of constraint random walk
When I try X = [-1 -1 -1 +1 +1 +1 +1 +1 -1] your Y indeed matches my V. However when I try X = [+1 +1 +1 -1 -1 -1 -1 -1 +1] I don't see the match. Perhaps I just need to clear my mind a bit.
Dec
10
comment Expectation of constraint random walk
Thanks for your answer, but I don't see why $Y_n$ matches the dynamics of the question. For example: X = [1 1 1 -1 -1 -1 -1 -1 1] then S = [1 2 3 2 1 0 -1 -2 -1] and M = [1 2 3 3 3 3 3 3 3] so Y = [0 0 0 1 2 3 4 5 4] but based on this X the value I am interested in would be: V = [1 2 3 2 1 0 0 0 1]
Dec
10
comment Expectation of constraint random walk
@Did That was my intuition as well, however I could not find a proof or strong reasoning for this.
Dec
10
asked Expectation of constraint random walk
Dec
9
awarded  Caucus
Dec
4
comment Is it possible to simulate a floor() function with elementary arithmetic?
This is at best a supplement to an existing answer. As such I flagged this.
Oct
23
awarded  Yearling
Sep
30
awarded  Explainer
Sep
24
awarded  Autobiographer
Sep
19
comment Trick with 3-digit numbers, always get 1089
Why does this fail for 645? (or any A,B,C in general?)
Sep
16
comment Ambiguity of notation: $\sin(x)^2$
Your first line holds if it is only about a single variable. However, if x is defined as y+z you could see sin(y+z)^2 meaning sin((y+z)^2)
Sep
12
comment proof by induction - explanation on it
The core point here is that you choose your base case in such a way that the base case is case k for some k. (Often k=1 is chosen here)