Skip to main content

All 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 ...
Dotman's user avatar
  • 590
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: ...
user102741's user avatar
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: ...
user3410765's user avatar
0 votes
0 answers
41 views

Getting better answers by smaller working precision?

I have the following code ...
Dotman's user avatar
  • 590
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 ...
Dotman's user avatar
  • 590
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: ...
Dave's user avatar
  • 11
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 ...
Patrick.B's user avatar
  • 1,575
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: ...
John Taylor's user avatar
  • 5,881
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 (...
John Taylor's user avatar
  • 5,881
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 ...
WillG's user avatar
  • 1,120
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 ...
Dominic's user avatar
  • 2,914
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 ...
yarchik's user avatar
  • 21.8k
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 ...
Rookey's user avatar
  • 43
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 ...
Ricky the Confused's user avatar
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: <...
cj9435042's user avatar
  • 683

15 30 50 per page