Skip to main content

Questions tagged [performance-tuning]

Questions on optimizing Mathematica code for higher performance. This may mean faster execution, lower memory usage or both. Not to be confused with mathematical optimization.

1 vote
0 answers
33 views

Consider the following picker (binary search using a CDF) and some compiled code using it: ...
John Taylor's user avatar
  • 6,123
3 votes
2 answers
213 views

$f(p) = \sum\limits_{k=0}^{\infty} (v/D)^k L^{(\alpha-1)k+\alpha-3} E^{k+1}_{\alpha,(\alpha-1)k+\alpha-2}(-p/D L^\alpha)|_{L=1} = 0$, $v=0.8\ cm/min, D=0.01\ cm^\alpha/min, \alpha =1.97, K=0.6\ 1/min$....
Jacques's user avatar
  • 33
2 votes
1 answer
343 views

I want to calculate several derivatives and integrals involving a complicated periodic piecewise function, but I'm struggling to get it to work, and someone here suggested that part of the problem is ...
Lawton's user avatar
  • 406
0 votes
0 answers
76 views

This is sort of a continuation of Generating Linear Extensions of a Partial Order. It is about generating all those permutation lists p which satisfy ...
მამუკა ჯიბლაძე's user avatar
-1 votes
0 answers
48 views

I am trying to numerically integrate a complicated function f[t1, t2, t3] over $t_1,t_2,t_3 \in [-4,0]$. The function is piecewise defined, known to have jump ...
Laplacian's user avatar
  • 1,155
4 votes
0 answers
155 views

Question Suppose we have a 3D MeshRegion reg composed of 2D triangular faces. I want to find a (minimal-ish) list of balls, ...
Adam's user avatar
  • 4,515
5 votes
1 answer
181 views

I am generating a 3D band structure from a slab Hamiltonian and color-coding each eigenvalue by its IPR (defined from the corresponding eignvector, e.g., inverse participation ratio). The numerical ...
liu han's user avatar
  • 51
7 votes
1 answer
299 views

I want to Rasterize large numbers of single characters quickly, not as a single image but many separate ones. Ideally each one has unique/shrinkwrapped dimensions, ...
Adam's user avatar
  • 4,515
1 vote
1 answer
166 views

$LLL$ is implemented in Wolfram Mathematica as $\mathsf{LatticeReduce}$ command. If we want to reduce a rank $k\leq n$ lattice in $\mathbb Z^n$ where the generator matrix of the lattice has integral ...
Turbo's user avatar
  • 157
2 votes
1 answer
138 views

I ran it on version 13.0.1 for Microsoft Windows (64-bit) (January 28, 2022). (the same bug persist even in the current newest version ...
azerbajdzan's user avatar
  • 36.4k
4 votes
2 answers
187 views

I want to plot contours of the signed distance function of a region defined by an implicit equation: $R = \{ (x,y) : F(x,y) \le 0 \}$. As a trivially simple concrete example, we could take the region ...
bubba's user avatar
  • 141
0 votes
0 answers
161 views

I have 128 GB of RAM on a Windows 11 desktop. I am doing 3D animations, and it is quite slow. I checked RAM usage, and it uses 26 GB at most. Is there a way to get Mathematica to use more available ...
wdacda's user avatar
  • 415
2 votes
0 answers
94 views

Consider this code: ...
Anton's user avatar
  • 2,072
4 votes
2 answers
166 views

Problem statement: I am trying to write a function that calculates the number of distinct ways an integer can be expressed as a sum of nonnegative integer powers of its decimal digits and return this ...
Vosoni's user avatar
  • 347
0 votes
1 answer
160 views

Let $G$ be a graph of order $n$. Then the visibility polynomial, $\mathcal{V}(G)$, of $G$ is defined as $$ \\ \mathcal{V}(G)=\sum_{i\geq 0} r_i x^{i} \\ $$ where $r_i$ denote the number of mutual-...
138 Aspen's user avatar
  • 2,384

15 30 50 per page
1
2 3 4 5
210