An Improved Algorithm for hypot(a,b)

Aluisio Cardoso Silva, Carlos Cristiano Hasenclever Borges
2019
2 references

Abstract

We develop a fast and accurate algorithm for evaluating $\sqrt{a^2+b^2}$ for two floating point numbers $a$ and $b$. Library functions that perform this computation are generally named {\tt hypot(a,b)}. We will compare four approaches that we will develop in this paper to the current resident library function that is delivered with Julia 1.1 and to the code that has been distributed with the C math library for decades. We will demonstrate the performance of our algorithms by simulation.

2 repositories
2 references

Code References

â–¶ openxla/xla
1 file
â–¶ xla/service/elemental_ir_emitter.cc
1
// https://arxiv.org/pdf/1904.09481.pdf
â–¶ python/cpython
1 file
â–¶ Modules/mathmodule.c
1
3. Square root differential correction: https://arxiv.org/pdf/1904.09481.pdf
Link copied to clipboard!