How are exponents calculated?

I’ve had a chance to look at fdlibm’s implementation. The comments describe the algorithm used: * n * Method: Let x = 2 * (1+f) * 1. Compute and return log2(x) in two pieces: * log2(x) = w1 + w2, * where w1 has 53-24 = 29 bit trailing zeros. * 2. Perform y*log2(x) = … Read more

Painter puzzle – estimation

There are a lot of unknowns here – his walking speed, his painting speed, for how long does the paint in the brush last… But clearly there are two processes going on here. One is quadratic – it’s the walking to and fro between the paint can and the painting point. The other is linear … Read more

Why is the constant always dropped from big O analysis?

There’s a distinction between “are these constants meaningful or relevant?” and “does big-O notation care about them?” The answer to that second question is “no,” while the answer to that first question is “absolutely!” Big-O notation doesn’t care about constants because big-O notation only describes the long-term growth rate of functions, rather than their absolute … Read more

SAS Data organization

You look like a new user to stackoverflow. Welcome. Your question is getting down voted for at least three reasons: 1) It’s not really clear what you want from your description of the problem and the data you’re providing 2) You haven’t shown any attempts at what you’ve tried 3) Providing your data as a … Read more