Skip to main content

Questions tagged [arbitrary-precision]

Questions on the arbitrary precision capabilities of Mathematica.

Filter by
Sorted by
Tagged with
2 votes
1 answer
175 views

Consider the following calculations: ...
user13892's user avatar
  • 10.4k
5 votes
2 answers
884 views

I want to calculate the sine of a big integer, e.g., Sin[10^50], but found that N[Sin[10^50]], N[Sin[10^50],10], and N[Sin[10^50],20] give different results: ...
Quantum Physics's user avatar
3 votes
2 answers
231 views

Consider the following simple calculation of the product of two 2x2 matrices composed of numerical values with specified precisions: ...
jjoIV's user avatar
  • 303
4 votes
1 answer
117 views

As a fun project with my kids, I've created a small GUI that enables us to explore the mandlebrot set. The GUI works great as long as you stay within machine precision. Even though the function <...
John's user avatar
  • 2,663
0 votes
0 answers
72 views

I was facing an underflow issue with Exp[]. I was able to fix that by following the suggestion: New General::munfl error and loss of precision However, when the argument of Exp are variables and I try ...
KB24's user avatar
  • 23
4 votes
1 answer
216 views

I have an implementation in Mathematica that involves iteratively generating large ranges of values, performing element-wise operations, and calculating a cumulative product followed by a total. While ...
Dotman's user avatar
  • 590
0 votes
0 answers
166 views

Edit: Clarifying the Core Issue i=x; While[Abs[p1 - p2] >= p1 tol, p2 = p1; p1 += s *= i (mkn + i)/((k1 - i) (n1 - i)); i--; ]; The core of my ...
Dotman's user avatar
  • 590
2 votes
0 answers
102 views

One of the features of Mathematica is the capability of doing arbitrary precision arithmetic and precision tracking. Mathematica has a build in command Series -- ...
ConfusedPhysicist's user avatar
2 votes
1 answer
148 views

(While there are similarities with my question here, this question deals with what Mathematica refers to as 'arbitrary precision numbers' and the former question deals with machine-precision numbers. ...
anonmous's user avatar
  • 195
1 vote
2 answers
153 views

Please, consider the following MWE representing my code: ...
fales's user avatar
  • 181
4 votes
1 answer
154 views

I find that Plot has some strange behavior. a = {{-5.355`3 I, 0.1589`3 }, {2.305`3, 0.01425`3}}; Det[a] // Abs gives ...
Ming's user avatar
  • 295
2 votes
0 answers
113 views

I'm trying to solve an ODE numerically with NDSolve but get an unexpected error message (Experimental`NumericalFunction::nlnum1),...
Escall's user avatar
  • 103
0 votes
2 answers
162 views

Is there a way to convert a number like 2.5326384172870370602159219766864657866396178797`20.124930050805514*^-12 to a high precision integer? Mathematica gives me only 20 digits with ...
levitymaster's user avatar
3 votes
4 answers
312 views

I am calculating the angle between vectors $$cos(\theta{_a}{_b}) = \frac{a^T b}{||a|| ||b||}$$ In mathematica I am coding ...
Manuel Hernandez's user avatar
2 votes
2 answers
259 views

I am wondering if it is possible to get the correct numerical result without computing with a lot of precisions in expressions. as a simple example suppose in the middle of some of my numerical code ...
ghadir jafari's user avatar
2 votes
2 answers
319 views

Dear Mathematica community, I'm having a problem with the PDF function for the hypoexponential distribution. Specifically, Mathematica returns 0 as soon as the value is very small. Below is an example:...
user88652's user avatar
0 votes
1 answer
102 views

2nd Code Block demonstrates failure in comment of output ...
Phillip D. Neumiller's user avatar
0 votes
0 answers
67 views

I am completely new to Mathematica (second day), so do not expect things to look polished. I am trying to perform a ConvexOptimization over a List/Array (dimensionality ...
Dan Doe's user avatar
  • 113
0 votes
1 answer
142 views

When I evaluate x = 1.0000000000000000001 (* Precision of 20 digits *) Mathematica returns ...
Gert's user avatar
  • 1,783
-3 votes
1 answer
151 views

ok but first of all if i have the huge number to be divided what will i have to use for the division to be accurate long division or some other formula square root or 2 this is to calculate music ...
NARI MILANI's user avatar
1 vote
0 answers
90 views

In for example this answer a solution is given to find the position of a maximal value. However, this solutions seems to run into trouble when dealing with precision numbers. Take the following ...
Kvothe's user avatar
  • 4,931
2 votes
0 answers
152 views

Is it possible to use NDSolve with Rational numbers instead of Real? I use all rational ...
amzon-ex's user avatar
  • 141
6 votes
2 answers
2k views

Consider the following calculation: 1234*5678*90.12 The result is: 6.31439*10^8 However, I want to get a precise result. Of ...
Wolf's user avatar
  • 145
3 votes
1 answer
132 views

It appears that GraphDistance, GraphDistanceMatrix, FindShortestPath, etc. all work with ...
user46831's user avatar
  • 701
0 votes
0 answers
194 views

I am trying to add a comparator function in a larger piece of code which can equate two arbitrary precision numbers and yields True if they are approximately close. ...
Ali Hashmi's user avatar
  • 9,130
1 vote
1 answer
217 views

I have the following function, that is the result of The integration between x and some upper limit of a positive function, thus should be positive $f(x,vE) = \frac{e^{-1140.09 x} \left(e^{67945.5 \...
Giorgio Busoni's user avatar
3 votes
0 answers
381 views

When dealing with a code that produces too small numbers (in a complicated way) like 0.33691 4.015757066049965*10^-330 I get the following warning General::munfl: ...
S. Euler's user avatar
  • 399
1 vote
1 answer
155 views

I define a function SS[t] as an inverse function: ...
Job Stancil's user avatar
2 votes
2 answers
387 views

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
2 votes
1 answer
336 views

I know that Mathematica has great built-in precision tracking, so when you do calculations with arbitrary-precision numbers, Mathematica keeps track of the precision on the result. Given this careful ...
WillG's user avatar
  • 1,120
0 votes
0 answers
103 views

I am trying to generate and solve a matrix that tends towards being singular using variable arbitrary precision to ensure accuracy. Consider, for example, a matrix with tunable singularity: ...
Eli Lansey's user avatar
  • 7,609
0 votes
1 answer
133 views

In certain calculation I encountered a system of linear equations in 144 variables, and it takes hours to compute. Most probably the reason is that coefficients are really huge integers (about $10^{50}...
მამუკა ჯიბლაძე's user avatar
2 votes
1 answer
229 views

I'm working with the logistic map $f(x,\lambda)=4\lambda x(1-x)$, and iterations of the logistic map $f^{(2^n)}(x,\lambda)=f^{(2^{n-1})}(f^{(2^{n-1})}(x,\lambda),\lambda)$. There are some special ...
David's user avatar
  • 270
1 vote
4 answers
369 views

Consider the function f[a_] := NIntegrate[Sqrt[a + Log[x]], {x, 1, 10}, WorkingPrecision -> 30]. With this definition, I cannot call ...
WillG's user avatar
  • 1,120
0 votes
0 answers
92 views

I want to generate a set of equations for all planes in the convex hull as specified in this question. The problem is that the generated set of equations don't correctly cover all the points. I run a ...
Samvid Mistry's user avatar
1 vote
0 answers
215 views

I think that there is a bug in the way FindMaximum handles WorkingPrecision for constrained problems. Has anyone encountered a similar problem before? Is there a work around? Here is an example in ...
Uri Z's user avatar
  • 31
2 votes
0 answers
254 views

It is expected that calculations in arbitrary precision are much slower than in machine precision. However, LinearSolve has an unexpected behavior: there is a ...
renphysics's user avatar
  • 1,652
1 vote
2 answers
247 views

What I already know (maybe) : My theory about Mathematica's way of implementing approximated number An number approX with arbitrary precision ...
Murphy Ng's user avatar
  • 177
0 votes
1 answer
142 views

How do I calculate $$\frac{1}{{\frac{1}{7 \times 10^7}- \frac{8\times10^{17}\times 3.1\times 10^7}{6.7 \times 10^{-11}\times \left(1.9 \times 10^{27}\right)^2} }}\tag{1}$$ To arbitrary precision? I ...
BLAZE's user avatar
  • 127
0 votes
0 answers
105 views

I would like to know if there is a fast way to create the following matrix (note that the matrix is defined with arbitrary precision): ...
user12588's user avatar
  • 627
2 votes
1 answer
159 views

I am using mathematica to deal with rational functions, $p(x)/q(x)$, where the polynomials, $p,q$ have a high degree and coefficients with high order of precision, e.g: ...
Bulkilol's user avatar
  • 341
2 votes
0 answers
58 views

It seems like Mathematica version 12 sets arbitrary underflow precision depending on the function, but I would like the underflow precision to be same as what was for previous version of Mathematica ...
Indeterminate's user avatar
0 votes
0 answers
75 views

By executing something like N[π, c] what is the maximum positive integer value c can have until the output is compromised by ...
FRANCESCO's user avatar
4 votes
0 answers
174 views

I want to know how N[π, 30] == π works. The result is True. I wonder whether the exact number ...
FRANCESCO's user avatar
6 votes
1 answer
281 views

I am trying to implement an arbitrary precision algorithm, but I am not very familiar with Mathematica or arbitrary precision arithmetic. I was able to implement it but surprised by how much slower it ...
Maya's user avatar
  • 81
2 votes
0 answers
116 views

For a project of mine it is preferrable to set notebook precision globally. I have done so by using the answer in Global precision setting. The idea is to dynamically create a ...
1010011010's user avatar
0 votes
1 answer
140 views

Why the following calculation gives Indeterminate value? ...
Bekaso's user avatar
  • 639
0 votes
1 answer
199 views

In my calculations I have a variable (say z) which can be an argument of Log, say, z Log[z]. ...
Bekaso's user avatar
  • 639
1 vote
1 answer
147 views

I run these lines: a = 0.833 SetPrecision[a, 20] and this is the output: 0.833 0.83299999999999996270 I expected to ...
user63612's user avatar
  • 103
7 votes
1 answer
136 views

Consider the following prec = 32; x = N[Range[0, 1, 1/10], prec]; f = Interpolation[Transpose@{x, x}]; Then ...
mmal's user avatar
  • 3,558