# An Improved Algorithm for hypot(a,b)

**Authors:** Carlos F. Borges

arXiv: 1904.09481 · 2019-06-17

## TL;DR

This paper introduces a new, faster, and more accurate algorithm for computing the hypotenuse of two floating point numbers, improving upon existing library functions in Julia and C.

## Contribution

The paper presents four novel algorithms for hypot computation and compares their performance to standard library implementations.

## Key findings

- New algorithms outperform existing functions in speed and accuracy
- Simulation results demonstrate significant improvements
- Enhanced hypot computation benefits scientific and engineering applications

## 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.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.09481/full.md

## Figures

1 figure with captions in the complete paper: https://tomesphere.com/paper/1904.09481/full.md

## References

2 references — full list in the complete paper: https://tomesphere.com/paper/1904.09481/full.md

---
Source: https://tomesphere.com/paper/1904.09481