5.35 Tuesday, May 3, 2016

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

[Find duplicates in list of InfiniteLine] http://mathematica.stackexchange.com/questions/114046/find-duplicates-in-list-of-infiniteline

MMA 10 introduced a new function, which can be very convenient: InfiniteLine.

Of course, two infinite lines can be described by different arguments: for example InfiniteLine[0,0,1,0] and ...

- asked by anderstood (14 votes), answered by kglr (12 votes)

—————————-

[Is there any harm or benefit to Removing unneeded private symbols in packages?] http://mathematica.stackexchange.com/questions/114106/is-there-any-harm-or-benefit-to-removing-unneeded-private-symbols-in-packages

One of the things I noticed is that in typical medium-to-large sized packages, a huge number of symbols are created in the myPackage‘Private context. You can see a list of them by running

? ...

- asked by QuantumDot (12 votes), answered by R. M. (18 votes)

—————————-

[Can Mathematica solve functional equations with nested variable?] http://mathematica.stackexchange.com/questions/114210/can-mathematica-solve-functional-equations-with-nested-variable

First, inline free form input can solve these equations:

But it seems no native Mathematica function can solve these, there is even an error page for equations of this form (nestdv).

Now my ...

- asked by happy fish (10 votes)

—————————-

[How to describe the convex hull of a set of points as an implicit region for optimization?] http://mathematica.stackexchange.com/questions/113689/how-to-describe-the-convex-hull-of-a-set-of-points-as-an-implicit-region-for-opt

Last edit: 2016-05-03

A.G.’s answer was the one helped me the most, see explanation at the end of this question.

Original question

In Mathematica you can create out of a set of points in 2D and 3D ...

- asked by Mauricio Lobos (10 votes), answered by A.G. (2 votes)

—————————-

[NDEigensystem returns incorrect eigenvalues for 2D coulomb problem, eigenfunctions contain discontinuity] http://mathematica.stackexchange.com/questions/113898/ndeigensystem-returns-incorrect-eigenvalues-for-2d-coulomb-problem-eigenfunctio

I posted a similar question a short time ago regarding the 3D Coulomb problem. Jens’ excellent answer to this thread allowed me to obtain the correct eigenvalues and eigenenergies for that system.

I ...

- asked by Matthew Brunetti (10 votes), answered by Jens (12 votes)

—————————-

[RandomInteger: speed with long lists] http://mathematica.stackexchange.com/questions/114047/randominteger-speed-with-long-lists

I noticed an interesting effect with RandomInteger when looking at the time to create \(10^8\) random integers. The following code lines all take about 0.5 seconds on a i7 Windows 64bit Laptop:

...

- asked by Eisbar (9 votes), answered by Daniel Lichtblau (8 votes)

—————————-

[Creating Saveable->False notebooks] http://mathematica.stackexchange.com/questions/113858/creating-saveable-false-notebooks

Bug introduced in 10.3 or earlier and persisting through 10.4.1

Reproduced on Windows 7, 10

I’m having difficulties with programmatic creation of non saveable notebooks on Windows with V10.4.1.

...

- asked by Kuba (9 votes), answered by Kuba (7 votes)

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

[How to make use of Associations?] http://mathematica.stackexchange.com/questions/52393/how-to-make-use-of-associations

I have been curious about it for long. Now that Mathematica 10 arrives, I think it’s time to ask the question: How the new Association data structure would be used to improve Mathematica programming?

...

- asked by Yi Wang (109 votes), answered by Leonid Shifrin (127 votes)

—————————-

[What are the most common pitfalls awaiting new users?] http://mathematica.stackexchange.com/questions/18393/what-are-the-most-common-pitfalls-awaiting-new-users

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...

- asked by Dr. belisarius (308 votes), answered by Michael E2 (177 votes)

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

[Integrate producing bad result] http://mathematica.stackexchange.com/questions/113791/integrate-producing-bad-result

I noticed a bug in Mathematica. It computes incorrectly a definite integral

Integrate[y* Sqrt[(l1^2 - y^2) (l2^2 - y^2)]/(a^2 - y^2), {y, 0, l1}, 
  Assumptions -> l2 > a > l1 > 0]

and ...

- asked by user1765636 (3 votes)

—————————-

[FindPeaks error " Expecting an image or graphics instead of"] http://mathematica.stackexchange.com/questions/113884/findpeaks-error-expecting-an-image-or-graphics-instead-of

I’m running Mathematica 10.3.1.0 on windows 7 Professional Sp.1 when I try to use FindPeaks I keep getting the following error, even when trying the example in the documentation.

I have done the ...

- asked by Phymonkey (2 votes)

—————————-

[How can I set notebook’s options without opening it?] http://mathematica.stackexchange.com/questions/113816/how-can-i-set-notebooks-options-without-opening-it

At present moment, to batch apply a change in a set of notebook I use a "brute force", rough, method:

(* simple example *) 
setBackgroundBlue[notebookFileName_] := Module[ 
   {tempNb}, 
   tempNb =  ...

- asked by mitochondrial (3 votes)