The [f,e]=log2(x) syntax (== frexp(x)) is undocumented. "log2" is a name clearer than "frexp", that shall become undocumented and kept as internal
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
Already in Scilab 4, [f,e] = log2(x) is an alias of frexp(x), but in Scilab 6.0 it is still not documented.
"frexp" is quite obscure and hard to remember (imo).
IMO, it would be preferable
* to document [f, e] = log2()
* to undocument frexp() and keep it as an internal. Hence there won't be BC issue.
--> [f,e] = log2(%pi)
e =
2.
f =
0.7853982
--> [f,e]=frexp(%pi)
e =
2.
f =
0.7853982
HOW TO REPRODUCE THE BUG:
-------------------------
https://help.scilab.org/docs/6.0.0/en_US/log2.html
[f,e] = log2(%pi)
OTHER INFORMATION:
------------------
[f, e] = log2(x) // does the same in Octave