Day 05 in Mat360

Last time: Next time:

Today:


Website maintained by Andy Long. Comments appreciated.
















































N[Table[2^(-n), {n, 1, 53}], 53]
N[Sum[2^(-n), {n, 1, 53}], 53]
















































BaseForm[3.75, 2]
BaseForm[3.75, 16]
















































An interval approximation for e:
















































One that showed 0, 1, or 2 for positions; we don't see a "2" here.















































The figure illustrates two cases which won't work -- 1.44 and 1.45 -- each producing an interval beyond what the data support (the top line).

If not, and we must use 1.4, then another user would assume that we only know the 4 in the tenths place to within five units, and you can see what happens to the actual uncertainty -- it expands grossly, to the interval (0.9,1.9).

















































The speed of light in a vacuum.















































When

,

and, in particular, when , i.e. when

.

Symmetrically, subtraction will suffer the problem when a and b are approximately equal.















































Clear[x]
BaseForm[5.2, 2]
it := (Print[Floor[Log[2, x]]]; x = x - 2^Floor[Log[2, x]])
x = 5.2
n = 30
While[n != 0,
 it;
 n = n - 1
 ]