Remix.run Logo
zokier 6 days ago

herbie recommends `fma(h, (i + 0.5), a)`, but also doesn't report any accuracy problems with the original either

wiz21c 5 days ago | parent [-]

yeah, fused mul-add is certainly better. Dunno how one epxresses that in rust though :-) Ahhh seems like there at least f64::mul_add() in stdlib :-)