4.44 Tuesday, February 14, 2017

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

[How to generate a mesh with quadrilateral elements?] http://mathematica.stackexchange.com/questions/137479/how-to-generate-a-mesh-with-quadrilateral-elements

I have the following code that generates a finite element mesh:

 
Needs["NDSolve`FEM`"] 
order = 2; 
mesh = ToElementMesh[ 
DiscretizeGraphics[ 
GraphicsComplex[{{0, 4}, {5, 4}, {5, 0}, {8, 0}, {8,  ...

- asked by Diogo (13 votes), answered by Young (12 votes)

—————————-

[Why can’t I plot Log[Gamma[x]] for x > 170?] http://mathematica.stackexchange.com/questions/137666/why-cant-i-plot-loggammax-for-x-170

Bug introduced in 11.0

For some reason I can’t plot Log[Gamma[x]] for values of x larger than approximately 170:

Plot[Log[Gamma[x]], {x, 130, 200}, PlotRange -> All]

It works perfectly well ...

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

—————————-

[Finding the number of odd quintinomial coefficients] http://mathematica.stackexchange.com/questions/137692/finding-the-number-of-odd-quintinomial-coefficients

I am searching for the number of odd coefficients of

\(\qquad (x^4 + x^3 + x^2 + x + 1)^n\)

for arbitrary \(n\).

It took some hours to compute the result for \(n=12207\). There are \(16333\) odd ...

- asked by Jenny_mathy (10 votes), answered by Carl Woll (15 votes)

—————————-

[Possible bug with RegionPlot] http://mathematica.stackexchange.com/questions/137273/possible-bug-with-regionplot

RegionPlot[ImplicitRegion[(2 x - 1)/(x - 1) < 3/2, {x, y}], 
 PlotRange -> {{-9, 9}, {-9, 9}}]

Just checking whether anyone else can replicate this. Can anybody confirm such behavior and, ...

- asked by mathe (10 votes), answered by Jason B. (8 votes)

—————————-

[List processing] http://mathematica.stackexchange.com/questions/137306/list-processing

Suppose I have a list that looks like the following (Town names and total distance to that town)

resupply = { 
  {"Coleman", 0}, 
  {"Highwood House", 106}, 
  {"Canmore", 229}, 
  {"Exshaw", 245}, 
   ...

- asked by Tom De Vries (9 votes), answered by Kuba (19 votes)

—————————-

[How to superimpose plots and graphics in the same coordinate system?] http://mathematica.stackexchange.com/questions/137408/how-to-superimpose-plots-and-graphics-in-the-same-coordinate-system

NB: I am aware that "plots" are graphics too, so the title would be more precisely worded if "graphics" were replaced by "non-plot graphics".

EDIT: I have edited my original example to make the ...

- asked by kjo (8 votes), answered by Bob Hanlon (5 votes)

—————————-

[Unit tests for Graphics or FE boxes] http://mathematica.stackexchange.com/questions/137541/unit-tests-for-graphics-or-fe-boxes

Consider the following expression with bad syntax:

Graphics[foo]

How can I detect the error and retrieve the error message programmatically, so I can check for it in unit tests?

- asked by Szabolcs (7 votes), answered by rcollyer (9 votes)

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

[Labeling individual curves in Mathematica] http://mathematica.stackexchange.com/questions/4444/labeling-individual-curves-in-mathematica

I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I’ve read and my personal experience, PlotLegends is pretty bad.

Is ...

- asked by Tianxiang Xiong (47 votes), answered by Artes (38 votes)

—————————-

[Why this real integral yields imaginary results?] http://mathematica.stackexchange.com/questions/127301/why-this-real-integral-yields-imaginary-results

Integrate[(y - y^2 + x - x^2 + 2*x*y)/(1 - x - y),{x,0,1},{y, 0, 1}]

The above integral yields -1-4I/3 in Mathematica. Since the integrand is real (although divergent at some points), how does ...

- asked by Chong Wang (16 votes), answered by bbgodfrey (19 votes)

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

[How to convert ‘LogTicks[0, 2][[1, 2]]‘ to a regular number] http://mathematica.stackexchange.com/questions/137208/how-to-convert-logticks0-21-2-to-a-regular-number

I want to convert the \(10^i\) tick labels generated by LogTicks of the CustomTicks package to regular numbers. The first tick label is in element [[1,2]] of the object generated by LogTicks. FullForm ...

- asked by Felix (1 vote)

—————————-

[Solving the Euler-Lagrange equation with NDSolve‘ProcessEquations] http://mathematica.stackexchange.com/questions/137292/solving-the-euler-lagrange-equation-with-ndsolveprocessequations

I would like to compute the shortest distance between a number on pairs of points on a 2-dimensional Riemanniann statistical manifold (Negative Binomial distributions manifold, equipped with the Rao’s ...

- asked by C. Manté (1 vote)

—————————-

[Constraining the independent variable in a control system] http://mathematica.stackexchange.com/questions/137581/constraining-the-independent-variable-in-a-control-system

For an analog closed loop feedback control, I can do the following to model the response of a second-order physical system with an order 1 zeros polynomial to a step disturbance. I have a proportional ...

- asked by David Ollodart (2 votes)