All Questions
Tagged with precision-and-accuracy performance-tuning
17 questions
0
votes
0
answers
52
views
Why does using Range with arbitrary-precision numbers slow down computations, and how can I optimize?
I am working with some computations in Mathematica that involve creating several large tables and then taking a product and sum of their elements. I’ve noticed a significant performance difference ...
0
votes
2
answers
86
views
How to speed up the n-th Laplacian or derivative of function?
We wish to solve for the multiple Laplacian of a function, and here we use sum of E-exponential functions as an example:
...
0
votes
1
answer
81
views
Expression evaluates numerically inside of Plot but not inside NIntegrate
I have a function that I want to integrate:
...
0
votes
0
answers
41
views
Getting better answers by smaller working precision?
I have the following code
...
0
votes
1
answer
179
views
NMinimize can not find points that satisfy constraints
NMinimize cant find solutions for a function which clearly has one. Setting a working precision resulted in some output, however with error messages about tolerance and precision.
Heres my code. The ...
1
vote
1
answer
208
views
How do I speed up this numerical integration with Bessel functions? (Tried changing Working Precision and Integration Strategies)
I need to compute the function P[b] given as follows:
...
1
vote
1
answer
310
views
Floating point precision and speed [closed]
I am attempting to understand how to speed up the evaluation of numerical expression.
Specifically, following the first point of this blog, Mathematica is much quicker dealing with floating-point ...
0
votes
1
answer
108
views
How to improve the accuracy of integration with Bessel function without significant drop in performance?
Consider the following function and integral:
...
0
votes
0
answers
77
views
How to set up precision by default?
I have a table computing many numbers with large precision. Because of this, probably, Mathematica consumes a lot of RAM. Is it possible to restrict the precision in any calculations by default (...
2
votes
2
answers
292
views
Most efficient strategy for integrating over removable poles?
I am finding many situations where I have to numerically integrate some function $f(x)$ of the form:
$$f(x)=f_{s}(x)-ax^{-n},$$
where $f_s$ is a special function with a finite-order pole that is ...
4
votes
2
answers
213
views
Why is DistributeDefinitions taking so long with 100-300 Mb constants?
Why does DistributeDefinitions take so long to distribute variables that are 100-300 Mb in size?
I am setting up ParallelTable ...
1
vote
1
answer
103
views
Optimization of numerical integration
I would like to ask for a help from community in the numerical computation of an integral and in the preparation of a contour plot. I have already done some work in this direction, but everything is ...
1
vote
1
answer
111
views
How to make these operations occur faster?
How can I get this section of the code to solve this integration faster. I have rather large values but I don't need it to be too specific. However if I lower the precision it says the integration is ...
1
vote
1
answer
196
views
Performance Tuning - How can I make Mathematica to use less than certain digits number?
I would like to know if there is a way to make Mathematica to use at most certain digit number. For example, Suppose I want to calculate 2*Pi.
x=N[Pi]
y=2*x
...
3
votes
0
answers
190
views
How to avoid the time consuming side effect of SetPrecision
My code requires to set some precision to get more accurate results. But I found when I set the precision like 20 or 30, the computation speed would jump 7-10 times slower...
Here's an example:
<...