4.41.1 Top new questions this week

4.41.1.1 Strange behavior of Table
4.41.1.2 Large increase in integrate result leaf size after version 9. Looking for common cause
4.41.1.3 Convert Real packed array of pairs to Complex packed array
4.41.1.4 Conversion of Matrix of Characters to a Matrix of Zeros and Ones based on Column Frequency
4.41.1.5 What's the fastest way to take Mean of a Tensor in given slot?
4.41.1.6 Animating a Potential Function (eigenfunctions of Laplace's equation)
4.41.1.7 How to implement a free version of WebImageSearch?
4.41.1.1 Strange behavior of Table

https://mathematica.stackexchange.com/questions/158186/strange-behavior-of-table

 
Whenever I run the code 
 
a = 0; 
code := (a++); 
Table[code; a, {1000}] 
 
 
I get a list of 1000 zeros. However, if I replace 1000 with 100, then a get a list equal to Range[100]. Is this a bug or am I  ...
 

- asked by Antonio De Juárez (12 votes), answered by Szabolcs (21 votes)

4.41.1.2 Large increase in integrate result leaf size after version 9. Looking for common cause

https://mathematica.stackexchange.com/questions/158059/large-increase-in-integrate-result-leaf-size-after-version-9-looking-for-common

 
reported to WRI. [CASE:3960295] 
 
 
 
I run the CAS integration tests which contains 15000 integrals over number of Mathematica versions. 
 
I found that the average leaf size of the anti-derivatives  ...
 

- asked by Nasser (12 votes), answered by Itai Seggev (8 votes)

4.41.1.3 Convert Real packed array of pairs to Complex packed array

https://mathematica.stackexchange.com/questions/158082/convert-real-packed-array-of-pairs-to-complex-packed-array

 
I have a Real packed array arr. It may have arbitrary depth but Last@Dimensions[arr] == 2.  For example, 
 
arr = N@Partition[Partition[Range[24], {2}], 3] 
 
 
I want to convert it to a Complex packed  ...
 

- asked by Szabolcs (12 votes), answered by Carl Woll (9 votes)

4.41.1.4 Conversion of Matrix of Characters to a Matrix of Zeros and Ones based on Column Frequency

https://mathematica.stackexchange.com/questions/158465/conversion-of-matrix-of-characters-to-a-matrix-of-zeros-and-ones-based-on-column

 
I have a matrix of characters that I wish to convert to a matrix of 0' s and 1' s.  Although the matrix is large[17, 4301], I subsample 
this for purposes of my question.  The matrix is: 
 
m = {{"T",  ...
 

- asked by Stuart Poss (11 votes), answered by Nasser (4 votes)

4.41.1.5 What's the fastest way to take Mean of a Tensor in given slot?

https://mathematica.stackexchange.com/questions/158345/whats-the-fastest-way-to-take-mean-of-a-tensor-in-given-slot

 
One should expect that the implementation of the built-in function Mean was quick. However, as I recently observed, this is not true at all, in particular for matrices. Just compare Mean to the  ...
 

- asked by Henrik Schumacher (9 votes), answered by Carl Woll (6 votes)

4.41.1.6 Animating a Potential Function (eigenfunctions of Laplace's equation)

https://mathematica.stackexchange.com/questions/158412/animating-a-potential-function-eigenfunctions-of-laplaces-equation

 
I have written the following DynamicModule. The idea is that you can change the boundary, calculate the eigenfunctions and then animate them. Here is the code: 
 
DynamicModule[{pts, bdr = {{0, 0}, {1,  ...
 

- asked by Hugh (9 votes), answered by Kuba (8 votes)

4.41.1.7 How to implement a free version of WebImageSearch?

https://mathematica.stackexchange.com/questions/158134/how-to-implement-a-free-version-of-webimagesearch

 
I really don't like functions that I have to pay for, if they can be implemented for free. 
 
Is there a way to get around this pay-wall for WebImageSearch? Perhaps using some other free api or service? 
...
 

- asked by M.R. (9 votes), answered by b3m2a1 (11 votes)