4.3 Tuesday, December 5, 2017

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

[Sharing small code snippets] https://mathematica.stackexchange.com/questions/161269/sharing-small-code-snippets

As part of my never-ending goal of getting Mathematica code to be as easily shared as python packages I was recently thinking about how to make code easy to share.

So what’s are some good ways to ...

- asked by b3m2a1 (19 votes), answered by b3m2a1 (13 votes)

—————————-

[InverseTotient[ ]?] https://mathematica.stackexchange.com/questions/160949/inversetotient

Maple has a function InverseTotient( c ), which returns all those natural numbers \(n\) whose Euler totient function \(\phi ( n ) = c\). Is there an equivalent inverse of EulerPhi[ ] in Mathematica? If ...

- asked by Joseph O’Rourke (11 votes), answered by Michael E2 (18 votes)

—————————-

[What are the counterparts in Wolfram to left and right division of a matrix in other programming language, e.g. Julia and MATLAB?] https://mathematica.stackexchange.com/questions/161301/what-are-the-counterparts-in-wolfram-to-left-and-right-division-of-a-matrix-in-o

Sometimes, to find the inverse of a matrix is a labor-consuming task or even "disgusting", especially when the matrix is "ill". It is said, e.g. in Julia, that the left/right division operation is ...

- asked by Alexander Zeng (10 votes), answered by C. E. (12 votes)

—————————-

[How to perform Loop subdivision on a triangle mesh with Mathematica?] https://mathematica.stackexchange.com/questions/161331/how-to-perform-loop-subdivision-on-a-triangle-mesh-with-mathematica

Every now and then, the question pops up how a given geometric mesh (e.g. a MeshRegion) can be refined to produce a i.) finer and ii.) smoother mesh. For example, the following triangle mesh from the ...

- asked by Henrik Schumacher (9 votes), answered by Henrik Schumacher (11 votes)

—————————-

[How to speed up ‘RotationMatrix‘?] https://mathematica.stackexchange.com/questions/161230/how-to-speed-up-rotationmatrix

I frequently run into the situation that I have to apply RotationMatrix to a huge bunch of 3D vectors and angles for numerical computations. On the one hand, the syntax of RotationMatrix forces me to ...

- asked by Henrik Schumacher (9 votes), answered by Henrik Schumacher (15 votes)

—————————-

[How to create (Header + Main area + Settings pane) notebook layout] https://mathematica.stackexchange.com/questions/161203/how-to-create-header-main-area-settings-pane-notebook-layout

cross-posted in community.wolfram.com

The goal is something like in the picture below.

Basic? I dare you to try to implement it in a manageable, scalable and flexible way.

Requirements:

The ...

- asked by Kuba (7 votes), answered by Mike Honeychurch (1 vote)

—————————-

[MaTeX and https://mathematica.stackexchange.com/questions/161219/matex-and-phantom

My understanding of the irective is that it should preserve the sizes of all elements in the expression. But when I try this:

m1 = Inset[MaTeX["\\sqrt{\\phantom{a^2}b}", Magnification ->  ...

- asked by Wynne (7 votes), answered by Nasser (12 votes)

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

[Elegant operations on matrix rows and columns] https://mathematica.stackexchange.com/questions/3069/elegant-operations-on-matrix-rows-and-columns

Question

The Mathematica tutorial has a section ’Basic Matrix Operations’, describing operations like transpose, inverse and determinant. These operations all work on entire matrices. I am missing a ...

- asked by sjdh (148 votes), answered by Mr.Wizard (50 votes)

—————————-

[How to create effect like Van Gogh’s stroke brush?] https://mathematica.stackexchange.com/questions/39003/how-to-create-effect-like-van-goghs-stroke-brush

I need to apply Van Gogh’s stroke brush effect to a random image

Take the following image as an example:

Thank you so much if you could help!

- asked by user10495 (30 votes), answered by Simon Woods (42 votes)

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

[Is there any code formatting style reference?] https://mathematica.stackexchange.com/questions/161344/is-there-any-code-formatting-style-reference

Is there any code formatting style reference for Wolfram Language similar to https://www.python.org/dev/peps/pep-0008/ and https://google.github.io/styleguide/javaguide.html? I’m teaching some people ...

- asked by qazwsx (4 votes)

—————————-

[Plot spectrum Fourier Transform] https://mathematica.stackexchange.com/questions/161381/plot-spectrum-fourier-transform

i want to plot the spectrum of the following function. I hope that anybody is able to help me. I don’t know how to plot the dirac delta function. I tried it this way but it didnťt work so far. Thanks! ...

- asked by Luke (1 vote)

—————————-

[Wrapper for mathematica code with GUI] https://mathematica.stackexchange.com/questions/160966/wrapper-for-mathematica-code-with-gui

I have a code written in Mathematica. What I am trying to do is to write a wrapper (say using Python) that will take user input for the Mathematica code, run the code, and create output.

I do not ...

- asked by CuriousCoder (2 votes)