Recent content by phil.st
-
P
The smallest floating point x such that x+2=x
Thanks man! I appreciate your help. Everything is ok now!- phil.st
- Post #14
- Forum: Programming and Computer Science
-
P
MATLAB How Can I Store and Print Specific Decimal Digits of Pi Using MATLAB?
Hi! I'm using MATLAB and I want to store or print some particular decimal digits of pi, from 9901 to 10000. I'm using the algorithm below (Brent-Salamin algorithm) to print the first 10000 digits but I can't find out a way to save and print only the decimal digits from 9901 to 10000. What...- phil.st
- Thread
- Pi
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
P
The smallest floating point x such that x+2=x
1) Intel i3 CPU M 350 @ 2.27GHz, 3.00 GB RAM, Windows 7 x64 2) Dev-C++ 5.0 beta 9.2 (4.9.9.2) with Mingw/GCC, MATLAB- phil.st
- Post #10
- Forum: Programming and Computer Science
-
P
The smallest floating point x such that x+2=x
@rcgldr: MATLAB gives me the following results: >> format long e >> x = 2^54 x = 1.801439850948198e+016 >> tf = isequal(x,x+2) tf = 1 >> You're right! However, I don't understand why the smallest x is equal to 1.801439850948198e+016. @D H: To be honest, I'm totally confused at...- phil.st
- Post #8
- Forum: Programming and Computer Science
-
P
The smallest floating point x such that x+2=x
Thank you for your answer. I like your approach but I'm a bit confused. Could you be more specific? In 64-bit floating-point format, sign bit = 1 bit, exponent width = 11 bits and mantissa = 52 bit. So, I suppose that: (2)_{10} =(0.1 \underbrace{000...0}_\text{51})_2 \times 2^2 What's next...- phil.st
- Post #4
- Forum: Programming and Computer Science
-
P
The smallest floating point x such that x+2=x
Hi! I want to calculate the smallest floating point x such that x+2=x. I've written a programme in C that does not actually determines the smallest floating point x such that x+2=x, but rather determines a power of two within an interval that contains the smallest floating point x. Does anyone...- phil.st
- Thread
- Floating Point
- Replies: 16
- Forum: Programming and Computer Science