on-internet
← Community

Computing a correctly rounded / an almost correctly rounded floating-point cubic root

Stack Overflow ·

Suppose that correctly rounded standard library functions such as found in CRlibm are available. Then how would one compute the correctly rounded cubic root of a double-precision input? This question is not an “actual problem that [I] face”, to quote the FAQ. It is a little bit like homework this way. But the cubic root is a frequently found operation and one could imagine this question being an actual problem that someone faces. Since “best Stack Overflow questions have a bit of source code in them”, here is a bit of source code: y = pow(x, 1. / 3.); The above does not compute a correctly rou

Comments

Sign in or sign up to comment and upvote.

No comments yet.