CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 10:12:44 GMT
content-type: text/html; charset=utf-8
cf-ray: 964ae16ccd4b7679-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=6eb09370-156d-40a0-9588-6fb15b259535; expires=Sat, 25 Jul 2026 10:12:43 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 2966ca1e-56d6-4f7e-a67a-2d48b7d5fa66
x-worker-origin-response-time: 503000000
x-dns-prefetch-control: off
set-cookie: prov=6eb09370-156d-40a0-9588-6fb15b259535; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=.saEa_faCrii017ZFZiDr3MSbtcJkJoUXg008eZjalQ-1753438364-1.0.1.1-cWZFvhCUxrdgI2e8AlTVB6qgn1tg5.luLSHwVlepI6Rb_LTEX86olybhaj5wVDN3x_wDd6mtYVz9ej.HplnzMajshaElQ0wb6kW06HRb3lQ; path=/; expires=Fri, 25-Jul-25 10:42:44 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=owL0IdXATxhe6jOeftzlzfDmQM2SkO6B0IOWKKKoYAc-1753438364164-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'performance-tuning' Questions - Mathematica Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions 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.
3,118 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
2
answers
243
views
Speeding up conditional integration
I was wondering if there is a way to make this function faster
...
1
vote
1
answer
114
views
1
vote
0
answers
69
views
How to reduce the size of the output `InterpolatingFunction` from `NDSolve`? [closed]
This is my codes to calculate a wave equation by NDSolveValue:
...
1
vote
0
answers
86
views
Optimizing my code so it runs faster, Series function
I am trying to compute expansions of some fairly long expressions using the built in function Series in Mathematica, and I was wondering if there is anything I can do in order to make the code run ...
0
votes
0
answers
48
views
How to improve the Mathematica implementations of q-Bessel polynomial?
I know Mathematica has implemented some QFunctions.
I have found this literature: q-Bessel polynomials, q-Laguerre polynomials, q-Charlier polynomials, etc.?
I have implemented q-Bessel polynomials in ...
3
votes
1
answer
70
views
Find parameters b, c in a parameterized matrix A(b,c) to match two smallest eigenvalues to target values
I have matrix A that is dependent on two parameters b and c, so A = A(b,c). I need to find values for parameters b,c so that two smallest eigenvalues of my matrix A will be some exact numbers (in my ...
2
votes
2
answers
97
views
How can I efficiently find all cutsets of a graph based on the definition of cutset?
I want to find all cutsets of a graph based on the following definition:
A cutset is a set of edges of a connected graph G such that the removal of these edges from G reduces the rank of G by one, ...
1
vote
0
answers
66
views
Formulae of different topological indices [closed]
A topological index, also known as a connectivity index, is a type of a molecular descriptor that is calculated based on the molecular graph of a chemical compound
How to refine below code (...
3
votes
2
answers
382
views
Double optimization - function defined through `Module`
I am solving an optimization problem where there is an energy defined with some functions and some fixed parameters. I define this minimum as function of two variables and want to search in the space ...
1
vote
0
answers
56
views
Efficient calculation of Hosoya Index
The Hosoya Index is the number of independent edge sets (i.e., matchings) in a graph.
I have implemented it in Mathematica (based on the source code provided in ...
4
votes
1
answer
210
views
Efficient calculation of treewidth
The treewidth of an undirected graph is a very important concept in graph theory.
I have ported the python code from a related Code Golf question to Mathematica, and it has passed the test cases.
...
1
vote
1
answer
106
views
Rectangle counting in large bipartite graphs
For a bipartite graph, the local clustering coefficient of a node $v$ is the number of rectangles containing $v$ as a fraction of (something like, depending on the definition) the total number of ...
0
votes
0
answers
80
views
Fitting experimental data with a convolution of two functions - how to speed up such calculations?
I am trying to write a program that fits experimental data with a convolution of experimental instrumental response function (IRF) with several Exponential functions. This is what I coded so far.
Here ...
1
vote
0
answers
51
views
How to accelerat the Mathematica code calculating cover time of one graph?
The cover time of a graph is the expected time it takes a simple random walk on the graph to visit every node.
Related MSE post.
How to accelerat the Mathematica code calculating cover time of ...
5
votes
3
answers
255
views
High Performance Polygon Union
I need to find solution to combine large numbers of intersecting polygons, much faster than Mathematica's RegionUnion, so I'm looking at how to use external ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
list-manipulation × 569
matrix × 243
compile × 210
numerical-integration × 175
parallelization × 174
plotting × 155
equation-solving × 137
differential-equations × 131
numerics × 114
programming × 114
linear-algebra × 110
functions × 108
graphs-and-networks × 96
memory × 94
code-review × 81
sparse-arrays × 74
image-processing × 67
random × 60
graphics × 59
combinatorics × 52
special-functions × 52
more related tags
Hot Network Questions
- Why is this delayed differential system giving errors in plotting the solution?
- How do Francophones hear "ChatGPT"?
- Statistics - Linear Inference - What is the moment generating function of non - central t distribution?
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- Did Denmark report that 64% Palestinian refugees from 1992 received serious fines or jail time?
- leftmargin in enumerate
- tac-command is it a bug or a misinterpretation of the manual?
- Can I place between subject variables as random slopes?
- How do I implement this desired Excel data transformation?
- When did the OEIS get even better?
- Surjectively universal Polish space
- Early 70s scifi novel about underground people, caste is determined by the color of your poncho, and everyone eats mouldy grain
- Using homothety to prove cyclic quads
- Why are police personnel of all ranks called officers?
- Mars colony book I read in the 80's. The name?
- How can I allow a contact to update their organisation using FormBuilder?
- How do mechanical gyros maintain rotational speed?
- How much of a really big a spaceship could a nuke take out?
- Are classified documents subject to a subpoena in discovery?
- Is there a way to retrieve my inventory from the void in Minecraft Java Edition?
- How to model This Twisted Torus?
- Why is the Schrödinger wave equation totally different from the classical wave equation?
- Etymology of the word skulduggery?
- Can one engage with physics (or science) without touching philosophy?