Sharing small code snippets
InverseTotient[ ]?
What are the counterparts in Wolfram to left and right division of a matrix in other programming language, e.g. Julia and MATLAB?
How to perform Loop subdivision on a triangle mesh with Mathematica?
How to speed up `RotationMatrix`?
How to create (Header + Main area + Settings pane) notebook layout
MaTeX and \phantom
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?
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?
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
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 \phantom https://mathematica.stackexchange.com/questions/161219/matex-and-phantom
My understanding of the \phantom directive 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)