3.11.1 Top new questions this week

3.11.1.1 Drawing picture with straight line (Petros Vrellis's Art)
3.11.1.2 How do I count the most used functions across a set of notebooks?
3.11.1.3 How to ReplaceAll except within specified heads
3.11.1.4 Is this a bug in Replace?
3.11.1.5 How do I test if a variable represents a sequence?
3.11.1.6 How to calculate the numerical integral more efficiently?
3.11.1.7 Optional argument that can be completely omitted?
3.11.1.1 Drawing picture with straight line (Petros Vrellis's Art)

http://mathematica.stackexchange.com/questions/126161/drawing-picture-with-straight-line-petros-vrelliss-art

 
I am trying to extend Writing a word with straight lines for any picture/image. I guess the basic idea is to find a set of points in the image region and then draw random lines through them. Let's  ...
 

- asked by Sumit (16 votes), answered by Rahul (6 votes)

3.11.1.2 How do I count the most used functions across a set of notebooks?

http://mathematica.stackexchange.com/questions/125960/how-do-i-count-the-most-used-functions-across-a-set-of-notebooks

 
WolframLanguageData allows us to view the most used functions across several code bases like Wolfram Alpha, the documentation, or Stack Exchange. I was curious about the results for my own collection  ...
 

- asked by Michael Hale (15 votes), answered by Michael Hale (11 votes)

3.11.1.3 How to ReplaceAll except within specified heads

http://mathematica.stackexchange.com/questions/125918/how-to-replaceall-except-within-specified-heads

 
ReplaceAll[expr, rule] and ReplaceRepeated[expr, rule] search through all subexpressions of expr applying rule where they match. 
 
Are there built-in Mathematica functions that do the same thing,  ...
 

- asked by QuantumDot (15 votes), answered by JHM (15 votes)

3.11.1.4 Is this a bug in Replace?

http://mathematica.stackexchange.com/questions/125771/is-this-a-bug-in-replace

 
Consider the following minimal examples. This one works as expected, replacing trees starting from the inside with a numerical value. 
 
ClearAll[tree]; 
x = tree["A", {tree["B", {1, 2}], 3}]; 
Replace[x,  ...
 

- asked by István Zachar (14 votes), answered by Leonid Shifrin (17 votes)

3.11.1.5 How do I test if a variable represents a sequence?

http://mathematica.stackexchange.com/questions/126193/how-do-i-test-if-a-variable-represents-a-sequence

 
I created a variable that represents a sequence: 
 
mySeq = Sequence[1, 2, 3]; 
 
 
I wanted to use that variable as an argument for some functions. But I got in trouble. For example, 
 
FreeQ[mySeq, 1] 
 
 
...
 

- asked by Fernando Saldanha (12 votes), answered by Edmund (8 votes)

3.11.1.6 How to calculate the numerical integral more efficiently?

http://mathematica.stackexchange.com/questions/126001/how-to-calculate-the-numerical-integral-more-efficiently

 
Rencently, I ecountered the following numerical intergral: 
$$ 
\begin{cases} 
\mathbf I_1=\displaystyle \int_{t}\mathbf N' {\mathbf N'}^{\text T}{\rm d}t\\ 
\mathbf I_2=\displaystyle \int_{t}\mathbf N''  ...
 

- asked by Shutao Tang (11 votes), answered by Anton Antonov (8 votes)

3.11.1.7 Optional argument that can be completely omitted?

http://mathematica.stackexchange.com/questions/125929/optional-argument-that-can-be-completely-omitted

 
I am writing a simple function return similar words. 
 
Clear[similarWords] 
similarWords[string_]:=Nearest[WordList[],string] 
 
 
I want to add another argument n which is optional. When it presents, it  ...
 

- asked by matheorem (11 votes), answered by Szabolcs (12 votes)