# Questions tagged [precision-and-accuracy]

The tag has no usage guidance.

563 questions
Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

### Issues with ConvexOptimization and SetPrecision

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 ...
• 113
1 vote
2 answers
71 views

### Plotting high precision high degree polynomial

When I plot a high degree polynomial such as (available as CloudObject since it is too big to explicitly include): ...
• 3,553
1 vote
1 answer
76 views

### Divide by zero warning: Actual division by zero or spurious?

I have the following code that calculates the gain of an amplifier ...
• 345
2 votes
2 answers
142 views

### Error "is too small to represent as a normalized machine number; precision \ may be lost " for small values in Plot

I'm trying to plot two curves but I'm having issues with the lower end of the range: ...
• 1,252
3 votes
0 answers
61 views

### What's the best method to use when NIntegrating a sinx + cosx type function?

I'm having some problems when trying to NIntegrate a sinx + cosx type function. I have already tryed several combinations of ...
0 votes
1 answer
66 views

### Confusion about precision [duplicate]

When I evaluate x = 1.0000000000000000001 (* Precision of 20 digits *) Mathematica returns ...
• 928
-3 votes
1 answer
84 views

### long division acurate answer on dividing long numbers [closed]

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 ...
4 votes
1 answer
335 views

### Real number equality (==) not working: what's the least-overcomplicated solution?

I'm running a program that evaluates equalities after I substitute all symbols for numbers. The equalities on floats are giving me trouble. My program is reaching a point where something like the ...
• 558
0 votes
0 answers
39 views

### How do change precision in coefficients in matrices

I alway have this kind of matrices... obviously I would like to have 0s instead of 10^-15. I've tried with N[] function but doesn't work. Does anybody know how to proceed in this case?
• 199
1 vote
3 answers
116 views

### Is the result given by NSolve sufficiently reliable to claim that there is such a solution for the equation?

I use this code for ContourPlot ...
• 463
0 votes
0 answers
34 views

### How to obtain the most accurate maximum value of the given equation? Changing WorkingPrecision gives different results

I have two functions $f(x,y)$ and $g(x,y)$ over the domains $1.56 <x< 1.6$ and $3<y<\pi$. ...
• 463
0 votes
0 answers
31 views

• 463
1 vote
2 answers
91 views

### NSolve and FindRoot give a value which is not correct; how can I obtain the exact solution of the given equation? [closed]

I have two functions $f(x,y)$ and $g(x,y)$, I use this code ...
• 463
0 votes
0 answers
68 views

### Crashing mathematica 12.3 with a simple ODE

I'm trying to solve an ODE using the following code: ...
0 votes
1 answer
82 views

### RegionMember command alternative that can check members exactly?

My problem is as follows: I have an exact rational polygon created using ConvexHullMesh and given a rational point I need Mathematica to decide exactly if it is ...
• 553
2 votes
2 answers
92 views

Matlab: ...
• 725
1 vote
0 answers
52 views

### Accuracy issue in computing a Markov Transition Matrix

this question is based on a previous post of mine. I am simulating a one-dimensional Markov process on a linear graph. Transition probabilities are different than zero only for nearest neighbours of ...
• 737
1 vote
1 answer
94 views

### Exponential fit precision lost

I have a data: ...
0 votes
0 answers
42 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 (...
• 3,544
1 vote
1 answer
90 views

### How to make Mathematica work only with 10 digits? [duplicate]

I have a quite frustrating problem. In my code, I need Mathematica to ignore everything after 10 digits. For example I need it to treat: 25.26011447795545 as ...
• 553
1 vote
1 answer
51 views

### How to use ContourPlot and illustrate the domain of its separate lines over one axis as continuous lines on the top?

I am using this code ...
• 463
2 votes
0 answers
82 views

### Rational numbers in NDSolve

Is it possible to use NDSolve with Rational numbers instead of Real? I use all rational ...
• 121
3 votes
1 answer
60 views

### Which one is more accurate Solve or NSolve? How can I get the same result as Solve using NSolve in the given code?

I am using this code to calculate the quantity $sol$. Using Solve, I get the result $9.8598$ ...
• 463
6 votes
2 answers
628 views

### How to force Mathematica to do infinite-precision calculations?

Consider the following calculation: 1234*5678*90.12 The result is: 6.31439*10^8 However, I want to get a precise result. Of ...
• 145
2 votes
0 answers
35 views

### Precision Issue in LinearOptimization - dual solution is not feasible

Trying to solve a linear program with high precision requirements and am interested in both the primal and the dual solution. Prefer solving the primal problem for convenience and solving the dual ...
• 339
4 votes
1 answer
65 views

### Avoid Extrapolation When Using NMaximize on Interpolating Functions

I want to use NMaximize to find the maximum value given by one interpolation function with respect to a constraint given by a second interpolation function. The main problem is that NMaximize produces ...
1 vote
0 answers
24 views

### Mathematica 12.1: Evaluation result does not show decimals [duplicate]

It surprises me that Mathematica does not show decimals after evaluating the following calculations: 500000+5.05 Result: 500005. Expecting: 500005.05 ...
1 vote
1 answer
102 views

### Nonlinear model fit gaussian precision

I wanted to fit double gaussian but it doesn't work, it doesn't fit gaussian. The error I get: Data:data Here is code ...
1 vote
2 answers
44 views

### KernelMixtureDistribution error message about precision

I want to use KernelMixtureDistribution to deal with a large amount of data points. For example, the following codes shows how I use it: ...
• 463
0 votes
0 answers
42 views

### Why is the N function giving me the wrong result when using WolframScript? [duplicate]

I am using wolframscript.exe to learn mathematica and I would expect the following code to return 0.7071: ...
• 111
0 votes
1 answer
52 views

### Why it remains only one digit after point in this numerical computation?

Why? And why N doesn't help? How to change and/or make it permanent?
• 725
2 votes
1 answer
59 views

• 909
1 vote
1 answer
73 views

• 463
0 votes
1 answer
35 views

### Indeterminant numerical value of summation

I have the following two-fold summation. ...
• 1,018
0 votes
1 answer
61 views

### Precision problem with mathematica

I have a precision problem with a complicated function in Mathematica. I need to get norm (NIntegrate[f[x],{x,0,1}]) and shape (...
0 votes
1 answer
37 views

### SetPrecision with Manipulate using variable number of controls

I want to convert inputs from controls in Manipulate into exact numbers and have two kinds of inputs: parameters: there are a fixed number of these rates: the number of rates is controlled by the ...
• 339
0 votes
0 answers
60 views

### Mathematica accuracy errors when creating data

I created training data for a neural network and below are two errors I got The only code that uses "FindRoot" command is the following ...
• 285
0 votes
1 answer
94 views

• 737