5.21 Tuesday, August 9, 2016

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

[PostScript-like drawing in Mathematica?] http://mathematica.stackexchange.com/questions/123289/postscript-like-drawing-in-mathematica

To illustrate by example, construct an equilateral triangle in PostScript:

0 0 moveto           %moveto origin 
6 0 lineto           %construct first line segment 
6 0 translate        %translate  ...

- asked by Alan (14 votes), answered by WReach (21 votes)

—————————-

[Efficiently exchange elements between two lists] http://mathematica.stackexchange.com/questions/123221/efficiently-exchange-elements-between-two-lists

I have two lists with equal length, and I want to exchange the elements on every even positions. For example,

{{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}} 
 
 
will return 
 
{{1, 7, 3, 9, 5}, {6, 2, 8, 4, 10}} 
 
 ...

- asked by happy fish (13 votes), answered by Kuba (12 votes)

—————————-

[Finite element simulation of Airy waves] http://mathematica.stackexchange.com/questions/122063/finite-element-simulation-of-airy-waves

I am attempting to solve for waves on a water surface starting with a two dimensional solution. The equations are that the water must satisfy Laplace’s equation everywhere with a time dependent ...

- asked by Hugh (13 votes), answered by user21 (10 votes)

—————————-

[How do you make a Neural Net?] http://mathematica.stackexchange.com/questions/123458/how-do-you-make-a-neural-net

In the new Mathematica release (v11), NeuralNetworks is one of the new main features. However, the documentation isn’t that clear on what function should be used in a Net.

The documentation on ...

- asked by JHM (12 votes), answered by Searke (13 votes)

—————————-

[How to plot data by counties?] http://mathematica.stackexchange.com/questions/123324/how-to-plot-data-by-counties

I’d like to plot county data as in this D3 example:

Is there a way to do this with GeoGraphics, or at least to get path polygons per county and then plot them with different colors?

The first ...

- asked by M.R. (11 votes), answered by C. E. (9 votes)

—————————-

[Why are delayed definitions in scoping functions NOT documented?] http://mathematica.stackexchange.com/questions/122061/why-are-delayed-definitions-in-scoping-functions-not-documented

As outlined here, := may be used in scoping constructs like With to give delayed definitions, but this is undocumented.

This has been in the language since at least Mathematica 4.0. It is very ...

- asked by Mr.Wizard (11 votes)

—————————-

[Shading under a curve with dots]http://mathematica.stackexchange.com/questions/123422/shading-under-a-curve-with-dots

I plotted the function \(y=x^2\) using the Plot command

Plot[x^2, {x,-5,5}]

I need to shade the area under the curve using a pattern (dots pattern), not using a solid color or a hue. Is it possible? ...

- asked by James (10 votes), answered by JasonB (14 votes)

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

[General strategies to write big code in Mathematica?] http://mathematica.stackexchange.com/questions/109888/general-strategies-to-write-big-code-in-mathematica

I think after six months of exposure to Mathematica and the Wolfram Language I am fairly OK with writing short codes and snippets. However, what are some general strategies to use in order to write ...

- asked by Ali Hashmi (94 votes), answered by Leonid Shifrin (75 votes)

—————————-

[Where can I find examples of good Mathematica programming practice?] http://mathematica.stackexchange.com/questions/18/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 ...

- asked by J. M. (430 votes), answered by faysou (388 votes)

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

[Can I use Mathematica as a constraint solver?] http://mathematica.stackexchange.com/questions/123487/can-i-use-mathematica-as-a-constraint-solver

I have been using SMT solvers for program analysis. Basically the idea is to translate x86 assembly code to SMT formulas and use the solver for automatic input test generation. There is a Microsoft ...

- asked by Edgar (1 vote)

—————————-

[Why is this function slower after a simple change?] http://mathematica.stackexchange.com/questions/122109/why-is-this-function-slower-after-a-simple-change

I have a function that calculates the rank of a restricted growth string defined like so,

rankKRGS[{}] = 0; 
rankKRGS[string_] := 
 With[{n = Length@string, k = Max@string + 1, alone =  ...

- asked by Jordy Dickinson (3 votes)

—————————-

[Is there an efficient way to monitor the progress of a task remotely?] http://mathematica.stackexchange.com/questions/123181/is-there-an-efficient-way-to-monitor-the-progress-of-a-task-remotely

Recently, I’ve been running Mathematica packages on a remote cluster using SSH (using, e.g. the command

nohup nice math -noprompt -run "<<myPackage.m" > myOutput &

so that the output ...

- asked by Nikhil Anand (2 votes)