fma#
Fused multiply-add: $x * $y + $z with a single rounding.
Σύνοψη#
my $r = POSIX::fma($x, $y, $z);
Τι επιστρέφεται#
A double. Because there is only one rounding step, the result can be more accurate than the naive two-step expression, especially for catastrophic-cancellation patterns like $a * $b - $c * $d rewritten as fma($a, $b, -($c * $d)).
Διαφορές από το upstream#
Fully compatible with upstream POSIX.