Mathematica Weekly Newsletter
Mathematica Weekly Newsletter

Top new questions this week:

Undocumented form for Extract

Prompted by a comments conversation here, here's an interesting (and often performance enhancing) use of Extract: target = Join[Range[100], {{1, 2, 3, Range[20]}}]; Rest@Extract[target, {{{}}, {2 ;; …

list-manipulation undocumented  
asked by rasher 17 votes
answered by Jacob Akkerboom 7 votes

Bizarre behavior of With, Compile and Break

I'm guessing this is almost certainly a bug in Compile (because they're fairly common), but it's pretty weird and I spent about an hour tracking down the issue and finding a test case. Consider this …

bugs compile  
asked by Pillsy 10 votes
answered by Leonid Shifrin 10 votes

Filling a curve between a line and the x-axis

I'm trying to plot the function $f(x)=\dfrac{1}{x^2}$, filling the square area from (0,0) to (1,1) with purple and filling the area under the curve from 1 to 4 with red. However, Mathematica is not …

plotting filling  
asked by Eudokia 8 votes
answered by Kuba 7 votes

How to change the appearance of a group opener?

I would like to change the GroupOpener appearance. In the present Mma design it is too small and can be missed by a reader unfamiliar with Mma. I know, how to change its color through the …

front-end  
asked by Alexei Boulbitch 8 votes
answered by MrHansSchmidt 0 votes

Explain the difference between ViewPoint and ViewVector?

I've read the documentation, but am still very unclear as to what the difference is between ViewVector and ViewPoint for Graphics3D. Could someone explain it concisely and clearly enough so that an …

graphics3d  
asked by Aron 7 votes
answered by Pickett 3 votes

Measuring curve length on a binarized image

With the help of almighty Mathematica 9, I got from this To this: with this code: MorphologicalBinarize[ Import["http://i.stack.imgur.com/79l19.jpg"]~ ColorConvert~"Grayscale"]; …

image-processing  
asked by iccthedral 7 votes
answered by halirutan 6 votes

Scan vs Map vs Apply

I cannot understand the difference between Apply, Scan, and Map. I have tried to play with these function by the codes below: f[x_] := x^2 Map[f, {{a, b}, c}] Output: {{a^2, b^2}, c^2} …

map  
asked by yashar 6 votes
answered by Mr.Wizard 12 votes

Greatest hits from previous weeks:

How to check if a 2D point is in a polygon?

Background: I use code from An Efficient Test For A Point To Be In A Convex Polygon Wolfram Demonstration to check if a point ( mouse pointer ) is in a ( convex ) polygon. Clearly this code fails for …

programming computational-geometry  
asked by ndroock1 44 votes
answered by kguler 30 votes

Is Mathematica an Implementation of the Wolfram Language?

I am trying to figure out what the announcement of the Wolfram Language means for Mathematica. Is Mathematica an implementation of the Wolfram Language, or is it something else?

core-language  
asked by Eric Brown 40 votes
answered by Joel Klein 16 votes

Can you answer these?

Is there a way to convert InlineCell to InputForm once and for all?

After asking a question about making InlineCell similar to Input, I realized that by typing Shift+Ctrl+I I really can manually convert every InlineCell to InputForm. So my new question is: Is there a …

stylesheet  
asked by Naitree 1 vote

How can I make my MM code more compact and readable? Can I put functions in different notebooks?

I'm doing some coding in MM9, but my program is getting quite large. It's mostly a bunch of functions defined at the beginning of it, but it's getting to the point where I have to scroll for a few …

notebooks formatting coding-style  
asked by YungHummmma 1 vote

When to use GenerateConditions->True

Many functions, usuallly those involving integration, take a GenerateConditions option which often defaults to False, or at least it does for Expectation and and the Fourier transform related …

symbolic options integral-transforms  
asked by Daniel Mahler 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3