================================== Top new questions this week: ==================================
[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)
—————————-
[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)
—————————-
[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)
—————————-
[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)
—————————-
[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)
—————————-
[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)
—————————-
[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)
================================== Greatest hits from previous weeks: ==================================
[How to express trigonometric equation in terms of of given trigonometric function?] https://mathematica.stackexchange.com/questions/434/how-to-express-trigonometric-equation-in-terms-of-of-given-trigonometric-functio
How can I express a trigonometric equation / identity in terms of a given trigonometric function?
using following trigonometric identities
Sin[x]^2+Cos[x]^2==1 Sin[x]/Cos[x]==Tan[x] ...
- asked by Prashant Bhate (27 votes), answered by Simon (34 votes)
—————————-
[Learn Mathematica (Wolfram) Language in one day] https://mathematica.stackexchange.com/questions/138366/learn-mathematica-wolfram-language-in-one-day
Currently I am trying to learn Python. Searching for relevant material I came across
X in Y minutes
and books with titles such as Learn Python in one day, in 24 hours, etc.
Similar material exists ...
- asked by dimitris (26 votes), answered by masterxilo (11 votes)
================================== Can you answer these? ==================================
[How to draw a generic 3D closed shape to be analyzed in AceFEM?] https://mathematica.stackexchange.com/questions/158446/how-to-draw-a-generic-3d-closed-shape-to-be-analyzed-in-acefem
I would like to draw a 3D shape to test my AceGen procedure. I will insert the AceFEM part of my code. In this example, I have performed the analysis on a hexahedron element.
- asked by M.Rock (2 votes)
—————————-
[Kernel crash with KeySelect and repeated keys on list of rules] https://mathematica.stackexchange.com/questions/158421/kernel-crash-with-keyselect-and-repeated-keys-on-list-of-rules
After running
KeySelect[{"a" -> 0, "a" -> 1}, True &]
my kernel either hangs forever (possibly with the eventual warning that "the kernel is not responding to a Dynamic evaluation") or ...
- asked by masterxilo (2 votes)
—————————-
[How to remove circled noise from image] https://mathematica.stackexchange.com/questions/158123/how-to-remove-circled-noise-from-image
Consider a simplified example:
noise
noise = Table[ RandomVariate[ NormalDistribution[1, 0.2]] Sin[Sqrt[x^2 + y^2]]^8, {x, -16, 16 - 16/512, 32/512}, {y, -16, 16 - 16/512, 32/512}];
...
- asked by xslittlegrass (3 votes)