2
votes
3answers
114 views

IEEE-754 General Issues

I read the documents of the IEEE-754 and I could not understand some things 1) Is it possible to represent any number using this method? I know there are a number of final states, and there are ...
61
votes
1answer
1k views

Proof that ${\left(\pi^\pi\right)}^{\pi^\pi}$ (and now $\pi^{\left(\pi^{\pi^\pi}\right)}$) is a noninteger

Conor McBride asks for a fast proof that $$x = {\left(\pi^\pi\right)}^{\pi^\pi}$$ is not an integer. It would be sufficient to calculate a very rough approximation, to a precision of less than 1, and ...
0
votes
2answers
83 views

Aproximate calculation in decimals

I am trying to refresh on precision of calculations. If we have the decimal fractions: $.234673$, $.322135$, $.114342$, $.563217$ each known to be correct to six figures why are each of the decimals ...
7
votes
2answers
201 views

Significant digits

We use currency conversion rates for financial calculations. Our currency conversion table stores conversion rates to and from each currency (about 150 world currencies) for each day, going back 20 ...
3
votes
2answers
118 views

Different Representations of Numbers in Subsets of $\mathbb R$

I think I've mentioned sometime before about logarithmic number system. In this system, a real number $r$ is represented by $(\text{sgn}(r), \log|r|) \in \{-1, 0, 1\} \times \mathbb R$. If $\mathbb R$ ...
5
votes
2answers
448 views

How many decimal places are needed for incremental average calculation?

If using the following formula to incrementally calculate average value: $$m_n = m_{n-1} + \frac{a_{n}-m_{n-1}}{n}$$ And the number of decimal places to where you can save $m_n$ is limited to $d$ ...
5
votes
2answers
206 views

How can I write an algorithm to perform the following calculation exactly? (references accepted)

Given natural numbers $N, K, m, C$, with $3^{m/3}K>C$, I want to be able to write an algorithm to exactly compute the number $$ \left\lceil \log_3 \left(\frac{N}{3^{m/3}K-C}\right) \right\rceil $$ ...
2
votes
0answers
123 views

1/3+2/3 in double precision

When I add 1/3 and 2/3 in double precision, I ended up with $1.\boxed{111\ldots1}1\times2^{-1}$, where the boxed part is the 52-bit mantissa. By the rounding to even rule, I should round it up, right? ...
5
votes
2answers
2k views

How can I calculate non-integer exponents?

I can calculate the result of $x^y$ provided that $y \in\mathbb{N}, x \neq 0$ using a simple recursive function: $$ f(x,y) = \begin {cases} 1 & y = 0 \\ (x)f(x, y-1) & y > 0 \end ...
1
vote
0answers
893 views

Teach me a simple, efficient division algorithm

I want to implement arbitrary-precision arithmetic in JavaScript for non-negative integer numbers. Long division isn't efficient if instead of the usual 10 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) there ...
5
votes
8answers
4k views

Need faster division technique for $4$ digit numbers.

I have to divide $2860$ by $3186$. The question gives only $2$ minutes and that division is only half part of question. Now I can't possibly make that division in or less than $2$ minutes by applying ...