Questions tagged [machine-precision]

85 questions
2
votes
1 answer

Floating point numbers, real numbers and machine precision

My math-book states that when a real number $x$ is replaced by a floating-point number $F(x)$ then the error between the two is: $|error|=|x-F(x)|\le\epsilon |x|$ Now the book asks: Consider two different, but mathematically equivalent…
1
vote
1 answer

When will A+(B+C) != (A+B)+ C, in a finite precision system

A, B, C, have finite precisions with machine epsilon of $10^{-16}$. When will the associative law A + (B+C) = (A+B) + C fail in this finite precision system? I have difficulty to find A, B and C. but I am thinking A can be a big number, B and C…
Di Wang
  • 511
0
votes
0 answers

Exponencial mantissa

I try to compute a function of type $e^x$. Since its natural fast-growing behaviour, the most natural behaviour is to decompose the resulting number into its mantissa and exponent components. However, due limited computational precision, one may not…
0
votes
1 answer

Spreadsheet: Significant figures function

1 AU is 149597870700 meters. This is much more information than typically needed, so 150 million kilometers would be precise enough in most situations. Does spreadsheets have a function to handle this? (I use Google Spreadsheet, LibraOffice and…
hschou
  • 111