Skip to main content

Questions tagged [floating-point]

Mathematical questions concerning floating point numbers, a finite approximation of the real numbers used in computing.

13 votes
4 answers
942 views

This now-deleted answer to a Code Review question about statistics in Java asserts that, when all values are floating points, computing the mean of several values as $\sum_{i=1}^n \frac{x_i}{n}$ will ...
Anerdw's user avatar
  • 237
-1 votes
1 answer
122 views

I was working on an exercise from a chemistry textbook which was about an application of the osmotic pressure formula. When I checked the solution the answer give was $62.05$ while I was getting as a ...
smith's user avatar
  • 133
1 vote
0 answers
54 views

Problem: We want to determine whether the following algorithm is stable or not. Data is $x_{1},x_{2} \in \mathbb{C}$, Solution is $x_{1}(x_{2}+1)$, computed as $\text{fl}(x_{1}) \otimes (\text{fl}(x_{...
Miranda's user avatar
  • 1,257
0 votes
0 answers
58 views

For this expression: ...
avigt's user avatar
  • 109
2 votes
1 answer
83 views

What is the variance of the relative error introduced by a converting a random real number to a float? I was able to develop a formula which, empirically, is off by a factor of 2. Let $\mathcal F \...
SRobertJames's user avatar
  • 6,463
4 votes
2 answers
217 views

I am investigating the behavior of an approximation of 1/sqrt(x) which uses a similar method to the more famous Quake III "Fast Inverse Square Root". Quake's FISR uses an approximation of ...
Adam Hyland's user avatar
2 votes
2 answers
237 views

This must have been studied before, and has been one of the confusion I've been having. Suppose we want to convert a astronomically big floating point number (so big that it's floating point ...
DannyNiu's user avatar
  • 365
1 vote
0 answers
72 views

In my numerical analysis text book there is this problem Assume a machine with base $\beta$, and $p$ mantissa digits, and that $u$ is the round-off error of a particular number. The number $∣x∣=(0....
Mathemagician's user avatar
0 votes
1 answer
104 views

I was reading: https://www.cs.usask.ca/~spiteri/CMPT898/notes/numericalStability.pdf Where I read that the algorithm $\tilde{f}(x)=fl(x)\bigoplus1$ for the problem $f(x)=x+1$, is stable but not ...
PranksterSabeleye's user avatar
4 votes
2 answers
182 views

Investigating the floating-point implementation of the $\operatorname{pow}(x,b)=x^b$ with $x,b\in\Bbb R$ in some library implementations, I found that some pow ...
emacs drives me nuts's user avatar
8 votes
0 answers
196 views

IEEE 754 floating point numbers contain the concept of 𝙽𝚊𝙽 (not a number), which "dominates" arithmetical operations ($+,-,⋅,÷$ will return ...
Hyperplane's user avatar
  • 12.4k
3 votes
0 answers
77 views

In the following equation $$10^{10^z} = 10^{10^x}+10^{10^y}$$ I want to find an algorithm that computes $z$ in a floating point accurate manner given any values of $x$ and $y$ (e.g. $x=y=2000$). The ...
Gerben Beintema's user avatar
2 votes
2 answers
137 views

I have this function $$f(x, t)=\frac{\left(1+x\right)^{1-t}-1}{1-t}$$ Where $x \ge 0$ and $t \ge 0$. I want to use it in neural network, and thus need it to be differentiable. While it has a ...
yuri kilochek's user avatar
1 vote
0 answers
129 views

I have a question about the proof of the following statement: For each set of machine numbers $F(b, n, E_{min}, E_{max})$ with $E_{min} < E_{max}$ the following inequality holds: $\epsilon_{mach} \...
Felix Gervasi's user avatar

15 30 50 per page
1
2 3 4 5
32