Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To infinity and back

There are mathematical operations that yield real numbers from +/- infinity. For example exp(-infinity) = 0. Is there a standard for mathematical functions in the standard C library that accept IEEE-754 infinities (without throwing, or returning NaN). I am on a linux system and would be interested in such a list for glibc. I could not find such a list in their online manual. For instance their documentation on exp does not mention how it handles the -infinity case. Any help will be much appreciated.

like image 280
srean Avatar asked Dec 06 '11 12:12

srean


People also ask

What does infinity and back mean?

Infinity is endless and therefore cannot be reached. Thus the expression "To infinity and beyond!" would simply represent limitless possibilities. Interesting(1) Confusing(3)

Who Said To infinity and beyond in Toy Story?

This line is spoken by Buzz Lightyear in the movie Toy Story (1995). Oh, Buzz—an eternal optimist. Buzz considers this his catchphrase…which it is, except that there happen to be a million Buzzes in toy stores around the world.

Who wrote to infinity and beyond?

5.5 x 8.5 in. To Infinity and Beyond explores the idea of infinity in mathematics and art. Eli Maor examines the role of infinity, as well as its cultural impact on the arts and sciences.


1 Answers

The See Also section of POSIX' math.h definition links to the POSIX definitions of acceptable domains.

E.g. fabs():

If x is ±0, +0 shall be returned. If x is ±Inf, +Inf shall be returned. 

I converted mentioned See Also-section to StackOverflow-Markdown:

acos(), acosh(), asin(), atan(), atan2(), cbrt(), ceil(), cos(), cosh(), erf(), exp(), expm1(), fabs(), floor(), fmod(), frexp(), hypot(), ilogb(), isnan(), j0(), ldexp(), lgamma(), log(), log10(), log1p(), logb(), modf(), nextafter(), pow(), remainder(), rint(), scalb(), sin(), sinh(), sqrt(), tan(), tanh(), y0(),

I contributed search/replace/regex-fu. We now just need someone with cURL-fu.

like image 167
Sebastian Mach Avatar answered Sep 20 '22 22:09

Sebastian Mach