Mathematica Weekly Newsletter
Mathematica Weekly Newsletter

Top new questions this week:

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 ...

list-manipulation computational-geometry built-in-functions  
asked by anderstood 14 votes
answered by kglr 12 votes

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 ? ...

packages memory  
asked by QuantumDot 12 votes
answered by R. M. 18 votes

How to describe the convex hull of a set of points as an implicit region for optimization?

In Mathematica you can create out of a set of points in 2D and 3D the convex hull and use it as a region for optimization problem, e.g., (*Dimension and number of points*) d = 2; np = 10; (*Generate ...

mathematical-optimization computational-geometry  
asked by Mauricio Lobos 10 votes
answered by A.G. 1 vote

NDEigensystem returns incorrect eigenvalues for 2D coulomb problem, eigenfunctions contain discontinuity

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 ...

equation-solving differential-equations numerical-integration  
asked by Matthew Brunetti 10 votes
answered by Jens 12 votes

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: ...

performance-tuning random  
asked by Eisbär 9 votes
answered by Daniel Lichtblau 8 votes

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. ...

bugs export notebooks options windows  
asked by Kuba 9 votes
answered by Kuba 7 votes

Join a list with {6, 6, 2} dimensions with a list {6, 6} dimensions

listA = {{a1, a2, a3, a4, a5, a6}, {b1, b2, b3, b4, b5, b6}, {c1, c2, c3, c4, c5, c6}, {d1, d2, d3, d4, d5, d6}, {e1, e2, e3, e4, e5, e6}, {f1, f2, ...

asked by SPIL 9 votes
answered by Kuba 12 votes

Greatest hits from previous weeks:

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 ...

programming core-language faq guidelines  
asked by Dr. belisarius 308 votes
answered by Michael E2 177 votes

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...

reference-request programming  
asked by J. M. 412 votes
answered by faysou 372 votes

Can you answer these?

Using TraditionalForm to express equations

I have a notebook in which a couple of partial derivatives are calculated. At the time of publishing this notebook, I'd like to make the resulting equations look the way they would in standard ...

output-formatting formatting  
asked by kjo 2 votes

Wrong limit involving sine?

Using Mathematica, I was trying to calculate the sum $$ B_n = \sum_{i=1}^n \sin^4\left(\frac{(i-1)}{(n-1)}\cdot\frac{\pi}{2}\right). $$ where I thought it would be $B_n = \frac{3(n-1) + ...

asked by Wauzl 2 votes

EventLocator in NDSolve seemingly hogs memory in Windows, but not Mac

I have written a function (ftest in my code) which does the following: Takes a vector {x,vx,vy} as input Numerically solves (with high precision) a specific system of ODEs with the initial ...

differential-equations memory windows osx  
asked by Erik Satie 6 votes
Subscribe to more Stack Exchange newsletters

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

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

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