Python 和 C 有
frexp
和 ldexp
函数(它们基本上在 y = x*2^i 中的 y、x 和 i 之间来回)。
我猜
exp
的意思是(2的)指数。 “ld”和“fr”是什么意思?我在 http://pubs.opengroup.org/onlinepubs/009695399/functions/ldexp.html 中看到“ld”可能意味着“负载”(来自尾数/指数形式),但即使这样也不完全清楚。不过,我不确定“fr”(http://pubs.opengroup.org/onlinepubs/9699919799/functions/frexp.html同样没有给出线索)。
那么,名称
frexp
和 ldexp
的含义是什么?我希望这可以帮助记住哪个是哪个。