Questions tagged [machine-precision]
For questions on the use of machine-precision real numbers (also known as floats), the numbers that can be directly manipulated through the underlying numerical capabilities of your computer system.
239 questions
4
votes
2
answers
118
views
Errors in LogLogPlot: "Precision may be lost", "Infinite expression encountered"
I am trying to make a LogLogPlot of 1/Sqrt[fun[x]] where the function fun[x] is
...
2
votes
1
answer
176
views
How to get consistent currency answers?
Consider the following calculations:
...
2
votes
1
answer
201
views
How to change default precision for ALL variables and computations?
I struggled a lot to make a piece of code working. IN the end, it was all about changing all numbers to have high precision, for example I changed
...
5
votes
2
answers
884
views
Strange results about the sine function of a big integer
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:
...
0
votes
0
answers
82
views
Machine precision in ReplaceRepeated
I am relatively new in Mathematica and facing the following issue. I replace the parameters in an expression with a list of values using the function ReplaceRepeated and am getting the error: General::...
0
votes
2
answers
256
views
Sampling irrational numbers [closed]
I'm sorry that my unclear statement has caused some misunderstanding. This edit was just to stop misunderstanding, Keep Closed.
I don't know if there is another software with a better fit for this ...
0
votes
0
answers
91
views
A function falls below default machine precision
I am trying to plot a function that becomes too small in a certain range (< 10^-320) and can no longer be calculated. Is there a way to change the precision so that it works and the log-log plot ...
0
votes
0
answers
95
views
Exporting numbers with MachinePrecision to csv very slow
Using Mathematica 9.0.1.0 on Mac OS X 10.9.5 (that's the copy we have and the machine we have to use. Updating not possible.)
Exporting a number (for instance, ...
3
votes
1
answer
138
views
Why are Packed Arrays limited to signed machine precision types?
Why are packed arrays limited to only a few types? Particularly, why are integer packed arrays limited to signed integers?
And is there a way to get the same efficiency you get with packed arrays in ...
6
votes
3
answers
896
views
A bug with high precision
Consider the following two numbers:
num1=0.0006000000000000001`;
num2=0.0006000000000000003`;
num2 appeared from ...
1
vote
0
answers
115
views
How to Parse Binary .STL File Created on Ancient 32-bit Architecture
Import[fileName,"STL"] returns $Failed
The file format is so simple that one can calculate the number of triangles in the file
by counting the number of BinaryReads to reach EndOfFile.
https:...
1
vote
1
answer
181
views
Calculating and plotting very small values gives errors
I want to plot the difference between $sin(x)$ and its Maclaurin series of order $200$ and more on $[0,1]$.
When I run the code
...
1
vote
0
answers
250
views
How to set the precision for the entire notebook
I want to do various computations conditional on a given precision for the entire notebook. I use the following code:
...
0
votes
1
answer
97
views
Evaluation gives different results before and after simplifying expression
I am trying to evaluate $h(z)=\frac{f(z)}{g(z)}$ at points $z$ close to 0. Here I have taken an example value of $z=\texttt{z1}=10^{-7}$ for demonstration. I notice that evaluating the fraction before ...
0
votes
2
answers
147
views
Generating sequence from a number with Precision
This question was from the End-Semester question paper of the previous year of my Course on Wolfram Mathematica - Apparently when I try to code it, something is going wrong with respect to Precision - ...