6.18 Tuesday, September 1, 2015

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

[Advice for Mathematica as Mathematician’s Aid] (http://mathematica.stackexchange.com/questions/92686/advice-for-mathematica-as-mathematicians-aid)

I use Mathematica mainly as an aid in symbolic attacks on problems, usually intermediate or harder and often number theoretic. While Reduce, Simplify, et al. are remarkably powerful, they of course ...

- asked by CarlEdman (29 votes), answered by MarcoB (20 votes)

[How can I evaluate untrusted Mathematica code in a sandbox?] (http://mathematica.stackexchange.com/questions/92347/how-can-i-evaluate-untrusted-mathematica-code-in-a-sandbox)

Is there any way to build a sandbox to evaluate untrusted Mathematica expressions in order to prevent them from having (malicious or accidental) harmful side effects?

Context: I’m developing a system ...

- asked by ibeatty (21 votes), answered by Stefan R (10 votes)

[Efficient lazy weak compositions] (http://mathematica.stackexchange.com/questions/92647/efficient-lazy-weak-compositions)

In Mathematica all weak k-compositions of integer n can be generated using permutations of integer partitions:

ClearAll[weakCompositionsPermPart] 
weakCompositionsPermPart[n_Integer,  ...

- asked by jkuczm (19 votes), answered by jkuczm (18 votes)

[SeriesData sucks when it can. How do I keep SeriesData from sucking?] (http://mathematica.stackexchange.com/questions/92646/seriesdata-sucks-when-it-can-how-do-i-keep-seriesdata-from-sucking)

When I run

Series[f[x]*Sin[x],{x,0,3}, Analytic->False] 
 
 
I get: 
 
 
  f[x](x-x^3/3+O[x]^4) 
 
 
as expected.  In FullForm, this is 
 
Times[f[x],SeriesData[x,0,List[1,0,Rational[-1,6]],1,4,1]] 
 
 
But  ...

- asked by QuantumDot (16 votes)

[How to zero (or replace) the diagonal of a square matrix?] (http://mathematica.stackexchange.com/questions/92666/how-to-zero-or-replace-the-diagonal-of-a-square-matrix)

Zeroing the diagonal of a square matrix is an operation I need frequently, but somehow I still haven’t managed to find an elegant solution that satisfies all these requirements:

works with both ...

- asked by Szabolcs (14 votes), answered by ciao (12 votes)

[Splitting a list into increasing sublists] (http://mathematica.stackexchange.com/questions/92527/splitting-a-list-into-increasing-sublists)

I have a list of numbers (say, for example, 1,2,3,4,3,2,1,2,3,4,3,2), and I want to split it into sublists so that each sublist is the (smallest) sublist whose sum is larger than the preceding one. ...

- asked by rogerl (14 votes), answered by Chris Degnen (4 votes)

[How to detect loops in a vector field?] (http://mathematica.stackexchange.com/questions/92425/how-to-detect-loops-in-a-vector-field)

Given a vector field and I’d like to detect if there are streamlines in closed patterns. For example, if the input is a vector field like this:

image = ColorConvert[Rasterize[\[Infinity], ImageSize  ...

- asked by M.R. (14 votes), answered by nikie (19 votes)

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

[Understanding differences between Maple and Mathematica in examples picked by Maplesoft] (http://mathematica.stackexchange.com/questions/60124/understanding-differences-between-maple-and-mathematica-in-examples-picked-by-ma)

I am reading the document How Maple Compares to Mathematica. On page 15 there is an example where Mathematica produces wrong results. Does anybody know why?

MAPLE:

MATHEMATICA:

Also on page 17 ...

- asked by mrz (31 votes), answered by Mr.Wizard (37 votes)

[How to express trigonometric equation in terms of of given trigonometric function?] (http://mathematica.stackexchange.com/questions/434/how-to-express-trigonometric-equation-in-terms-of-of-given-trigonometric-functio)

How can I express a trigonometric equation / identity in terms of a given trigonometric function?

using following trigonometric identities

Sin[x]^2+Cos[x]^2==1 
Sin[x]/Cos[x]==Tan[x] 
 ...

- asked by Prashant Bhate (23 votes), answered by Simon (27 votes)

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

[Creating a certain image (3D shadows, highlighted intersections)] (http://mathematica.stackexchange.com/questions/92494/creating-a-certain-image-3d-shadows-highlighted-intersections)

I would like to learn how to code within Mathematica the following picture:

I tried using

planarShadow[x_, direction_, normal_, darkShadow_: True] := 
 Module[{d, n}, d = Normalize[direction]; 
   ...

- asked by boldbrandywine (5 votes)

[How to stop auto loading of previously opened notebooks] (http://mathematica.stackexchange.com/questions/92699/how-to-stop-auto-loading-of-previously-opened-notebooks)

I’m trying to prevent Mathematica from opening previously opened notebooks when I start it up. I’m using version 10.0.0.0 on Mac OS X Yosemite. I’ve dug around in the preferences, and have tried ...

- asked by Peter Wills (2 votes)

—————————-

[Visualising a 1-(50,15,15) design] (http://mathematica.stackexchange.com/questions/92605/visualising-a-1-50-15-15-design)

The problem I have is the visualisation of a \(1-(50,15,15)\) design. That is a set of \(50\) points and \(50\) blocks (lines), so that each point is on \(15\) lines, and each line contains \(15\) points.

My ...

- asked by user32681 (4 votes)