{"id":6640,"date":"2022-12-20T19:19:30","date_gmt":"2022-12-20T22:19:30","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/fma-man3\/"},"modified":"2022-12-20T19:19:30","modified_gmt":"2022-12-20T22:19:30","slug":"fma-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/fma-man3\/","title":{"rendered":"FMA (man3)"},"content":{"rendered":"<h1 align=\"center\">FMA<\/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=\"#VERSIONS\">VERSIONS<\/a><br \/> <a href=\"#ATTRIBUTES\">ATTRIBUTES<\/a><br \/> <a href=\"#CONFORMING TO\">CONFORMING TO<\/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\">fma, fmaf, fmal \u2212 floating-point multiply and add<\/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 fma(double<\/b> <i>x<\/i><b>, double<\/b> <i>y<\/i><b>, double<\/b> <i>z<\/i><b>); <br \/> float fmaf(float<\/b> <i>x<\/i><b>, float<\/b> <i>y<\/i><b>, float<\/b> <i>z<\/i><b>); <br \/> long double fmal(long double<\/b> <i>x<\/i><b>, long double<\/b> <i>y<\/i><b>, long double<\/b> <i>z<\/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>fma<\/b>(), <b>fmaf<\/b>(), <b>fmal<\/b>():<\/p>\n<p style=\"margin-left:17%;\">_ISOC99_SOURCE || _POSIX_C_SOURCE\u00a0>=\u00a0200112L<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions compute <i>x<\/i> bodies manpages.csv script_extrae_body.sh script.sh usr <i>y<\/i> + <i>z<\/i>. The result is rounded as one ternary operation according to the current rounding mode (see <b>fenv<\/b>(3)).<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions return the value of <i>x<\/i> bodies manpages.csv script_extrae_body.sh script.sh usr <i>y<\/i> + <i>z<\/i>, rounded as one ternary operation.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> or <i>y<\/i> is a NaN, a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> times <i>y<\/i> is an exact infinity, and <i>z<\/i> is an infinity with the opposite sign, a domain error occurs, and a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If one of <i>x<\/i> or <i>y<\/i> is an infinity, the other is 0, and <i>z<\/i> is not a NaN, a domain error occurs, and a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If one of <i>x<\/i> or <i>y<\/i> is an infinity, and the other is 0, and <i>z<\/i> is a NaN, a domain error occurs, and a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>x<\/i> times <i>y<\/i> is not an infinity times zero (or vice versa), and <i>z<\/i> is a NaN, a NaN is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the result overflows, a range error occurs, and an infinity with the correct sign is returned.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the result underflows, a range error occurs, and a signed 0 is returned.<\/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 \/> Domain error: <i>x<\/i> bodies manpages.csv script_extrae_body.sh script.sh usr <i>y<\/i> + <i>z<\/i>, or <i>x<\/i> bodies manpages.csv script_extrae_body.sh script.sh usr <i>y<\/i> is invalid and <i>z<\/i> is not a NaN<\/p>\n<p style=\"margin-left:22%;\">An invalid floating-point exception (<b>FE_INVALID<\/b>) is raised.<\/p>\n<p style=\"margin-left:11%;\">Range error: result overflow<\/p>\n<p style=\"margin-left:22%;\">An overflow floating-point exception (<b>FE_OVERFLOW<\/b>) is raised.<\/p>\n<p style=\"margin-left:11%;\">Range error: result underflow<\/p>\n<p style=\"margin-left:22%;\">An underflow floating-point exception (<b>FE_UNDERFLOW<\/b>) is raised.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions do not set <i>errno<\/i>.<\/p>\n<h2>VERSIONS <a name=\"VERSIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions first appeared in glibc in version 2.1.<\/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-1637371.png\" alt=\"Image grohtml-1637371.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>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>remainder<\/b>(3), <b>remquo<\/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>  fma, fmaf, fmal \u2212 floating-point multiply and add <\/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,1963,3007],"class_list":["post-6640","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-fma","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6640","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=6640"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6640\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}