5.38 Tuesday, April 12, 2016

================================== 
Top new questions this week: 
==================================

[How to model wooden joints with mathematica’s FEM?] http://mathematica.stackexchange.com/questions/111960/how-to-model-wooden-joints-with-mathematicas-fem

This is a dovetail joint:

and I’d like to see the stresses and deformation on the joint.I haven’t seen any modeling of disconnected regions with FEM, only connected regions, so I’m curious if you ...

- asked by tsuresuregusa (16 votes), answered by user21 (6 votes) —————————-

[Possible Bug in ArrayMesh] http://mathematica.stackexchange.com/questions/111945/possible-bug-in-arraymesh

Suppose we have the following array from which we intend to create an ArrayMesh:

arr = {{{1, 1, 1}, {1, 0, 1}, {1, 1, 0}}, {{1, 1, 1}, {0, 1, 1}, {1, 1, 
   0}}, {{0, 1, 0}, {0, 1, 1}, {0, 0, 1}}};

...

- asked by RunnyKine (15 votes), answered by ilian (9 votes)

—————————-

[How to draw all paths from (1,1) to (n,n) by move (+1, 0) or (0, +1)?] http://mathematica.stackexchange.com/questions/112395/how-to-draw-all-paths-from-1-1-to-n-n-by-move-1-0-or-0-1

Now I can draw some grid:

But what I want(I’m sorry for the weird line. I have no image processing software in my mac...):

Please notice:

f(1, 1) = f(2, 1) = f(3, 1) = 1 
f(1, 1) = f(1, 2) =  ...

- asked by Sayakiss (14 votes), answered by wxffles (14 votes)

—————————-

[All the food WolframAlpha knows about] http://mathematica.stackexchange.com/questions/112104/all-the-food-wolframalpha-knows-about

I want to plot some nutritional values and do some computation with it.

Is there an analogue of CountryData[] to get a list of all the foods for which WA has information?

- asked by Andrea Di Biagio (12 votes), answered by C. E. (12 votes)

—————————-

[RegionNearest and neighborhoods] http://mathematica.stackexchange.com/questions/112264/regionnearest-and-neighborhoods

In this previous question we see that RegionNearest isn’t quite as ’capable’ as Nearest for some things.

Similarly, I need to be able to find a given neighborhood of points on a MeshRegion. With ...

- asked by flip (11 votes), answered by Simon Woods (10 votes)

—————————-

[How do I extract a matrix of only positive numbers given a set of assumptions?] http://mathematica.stackexchange.com/questions/111989/how-do-i-extract-a-matrix-of-only-positive-numbers-given-a-set-of-assumptions

I want to divide a matrix:

mat = {{a, 0, -b}, {d, a, 0}, {0, 0, -a}} 
 
with the following assumptions: 
a >= 0,  b >= 0, d >= 0

Into two matrices, one containing the positive elements, and one ...

- asked by Luis Fernando (11 votes), answered by b.gatessucks (14 votes)

—————————-

[How to type text with an underbrace underneath it like: \(\underbrace {g...g}_{n-times}\)?] http://mathematica.stackexchange.com/questions/111970/how-to-type-text-with-an-underbrace-underneath-it-like-underbraceg-g-n-t

I want to use the underbrace "esc u esc" but have it placed underneath text. Like \[\underbrace {g...g}_{n-times}\]

in a mathematica text cell. Is it possible? Thanks

- asked by Craig (11 votes), answered by JasonB (16 votes)

================================== Greatest hits from previous weeks: ==================================

[How to plot an ellipse?] http://mathematica.stackexchange.com/questions/20100/how-to-plot-an-ellipse

I’m new to Mathematica, and I’m finding it difficult to plot an ellipse. I tried using

Plot[(x/5)^2 + (y/3)^2 == 1, {x, -5, 5}, {y, -3, 3}]

but I’m getting some errors. Is there something wrong ...

- asked by Sriram (5 votes), answered by Jens (15 votes)

—————————-

[How to manipulate 2D plots?] http://mathematica.stackexchange.com/questions/7142/how-to-manipulate-2d-plots

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...

- asked by Istvan Zachar (94 votes), answered by Istvan Zachar (105 votes)

================================== Can you answer these? ==================================

[Possible Bug in LinearSolveFunction with Sparse Vectors] http://mathematica.stackexchange.com/questions/112313/possible-bug-in-linearsolvefunction-with-sparse-vectors

Bug introduced in 5.0 and persists through 10.4

LinearSolveFunction is new in 5.0

Consider the following set of equations and corresponding variables:

eqns1 ={2 x == 2 - 4 y, 3 y == 4 z, 2 z + 4  ...

- asked by RunnyKine (8 votes)

—————————-

[Why FoldList 5 times faster than Apply for matrix multiplication?] http://mathematica.stackexchange.com/questions/112125/why-foldlist-5-times-faster-than-apply-for-matrix-multiplication

Consider this list of \(2x2\) matrices:

list=RandomReal[{-2,2},{500,2,2}];

Now compare timings of Apply and FoldList for matrix multiplication:

t1=FoldList[Dot,list];//AbsoluteTiming 
(* 0.000324,  ...

- asked by Lukas (6 votes)

—————————-

[Generating OpenCL C code] http://mathematica.stackexchange.com/questions/112127/generating-opencl-c-code

I’m trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I’d like to be able to use ComplexExpand@#@f@(x +  ... 

- asked by ra91 (6 votes)