{"id":6946,"date":"2022-12-20T19:34:26","date_gmt":"2022-12-20T22:34:26","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/expm1-man3\/"},"modified":"2022-12-20T19:34:26","modified_gmt":"2022-12-20T22:34:26","slug":"expm1-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/expm1-man3\/","title":{"rendered":"EXPM1 (man3)"},"content":{"rendered":"<h1 align=\"center\">EXPM1<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#ERRORS\">ERRORS<\/a><br \/> <a href=\"#ATTRIBUTES\">ATTRIBUTES<\/a><br \/> <a href=\"#CONFORMING TO\">CONFORMING TO<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COLOPHON\">COLOPHON<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">expm1, expm1f, expm1l \u2212 exponential minus 1<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <math.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>double expm1(double<\/b> <i>x<\/i><b>); <br \/> float expm1f(float<\/b> <i>x<\/i><b>); <br \/> long double expm1l(long double<\/b> <i>x<\/i><b>);<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Link with <i>\u2212lm<\/i>.<\/p>\n<p style=\"margin-left:5%; margin-top: 1em\">Feature Test Macro Requirements for glibc (see <b>feature_test_macros<\/b>(7)):<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>expm1<\/b>():<\/p>\n<p style=\"margin-left:17%;\">_ISOC99_SOURCE || _POSIX_C_SOURCE\u00a0>=\u00a0200112L <br \/> || _XOPEN_SOURCE\u00a0>=\u00a0500 <br \/> || \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Since glibc 2.19: bodies\/ usr\/ _DEFAULT_SOURCE <br \/> || \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Glibc versions <= 2.19: bodies\/ usr\/ _BSD_SOURCE || _SVID_SOURCE<\/p>\n<p style=\"margin-left:11%;\"><b>expm1f<\/b>(), <b>expm1l<\/b>():<\/p>\n<p style=\"margin-left:17%;\">_ISOC99_SOURCE || _POSIX_C_SOURCE\u00a0>=\u00a0200112L <br \/> || \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Since glibc 2.19: bodies\/ usr\/ _DEFAULT_SOURCE <br \/> || \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Glibc versions <= 2.19: bodies\/ usr\/ _BSD_SOURCE || _SVID_SOURCE<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions return a value equivalent to<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">exp(x) \u2212 1<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The result is computed in a way that is accurate even if the value of <i>x<\/i> is near zero\u2014a case where <i>exp(x) \u2212 1<\/i> would be inaccurate due to subtraction of two numbers that are nearly equal.<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">On success, these functions return <i>exp(x)\u00a0\u2212\u00a01<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> is a NaN, a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> is +0 (\u22120), +0 (\u22120) is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> is positive infinity, positive infinity is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> is negative infinity, \u22121 is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the result overflows, a range error occurs, and the functions return &#8211;<b>HUGE_VAL<\/b>, &#8211;<b>HUGE_VALF<\/b>, or &#8211;<b>HUGE_VALL<\/b>, respectively.<\/p>\n<h2>ERRORS <a name=\"ERRORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">See <b>math_error<\/b>(7) for information on how to determine whether an error has occurred when calling these functions.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following errors can occur: <br \/> Range error, overflow<\/p>\n<p style=\"margin-left:22%;\"><i>errno<\/i> is set to <b>ERANGE<\/b> (but see BUGS). An overflow floating-point exception (<b>FE_OVERFLOW<\/b>) is raised.<\/p>\n<h2>ATTRIBUTES <a name=\"ATTRIBUTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For an explanation of the terms used in this section, see <b>attributes<\/b>(7).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"7%\"> <\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"8%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"8%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"62%\"> <\/td>\n<\/tr>\n<\/table>\n<p align=\"center\"><img decoding=\"async\" src=\"grohtml-1625951.png\" alt=\"Image grohtml-1625951.png\"><\/p>\n<h2>CONFORMING TO <a name=\"CONFORMING TO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">C99, POSIX.1-2001, POSIX.1-2008.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Before glibc 2.17, on certain architectures (e.g., x86, but not x86_64) <b>expm1<\/b>() raised a bogus underflow floating-point exception for some large negative <i>x<\/i> values (where the function result approaches \u22121),<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Before approximately glibc version 2.11, <b>expm1<\/b>() raised a bogus invalid floating-point exception in addition to the expected overflow exception, and returned a NaN instead of positive infinity. for some large positive <i>x<\/i> values,<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Before version 2.11, the glibc implementation did not set <i>errno<\/i> to <b>ERANGE<\/b> when a range error occurred.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>exp<\/b>(3), <b>log<\/b>(3), <b>log1p<\/b>(3)<\/p>\n<h2>COLOPHON <a name=\"COLOPHON\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This page is part of release 5.10 of the Linux <i>man-pages<\/i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https:\/\/www.kernel.org\/doc\/man\u2212pages\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  expm1, expm1f, expm1l \u2212 exponential minus 1 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,2451,3007],"class_list":["post-6946","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-expm1","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6946"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6946\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}