<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<font face="Courier New">Dear all,<br>
<br>
In an old script where I needed to apply log10 to an hyperarray I
had implemented it as log(A)/log(10) with a comment indicating
that in that version </font><font face="Courier New">log10()
didn't work for hyperarrays </font><font face="Courier New">(unfortunately
</font><font face="Courier New">I </font><font face="Courier New">don't
recall </font><font face="Courier New">what version it was).<br>
<br>
</font><font face="Courier New">In Version 6.1.0 it does work for
hyperarrays, but the documentation still says that it applies to
vectors or matrices:<br>
<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/log10.html">https://help.scilab.org/docs/6.1.0/en_US/log10.html</a><br>
<br>
In some contexts "matrix" may be interpreted as an hyperarray or
hypermatrix (for instance when speaking of N-D matrices), but for
Scilab a matrix is formally a two-dimensional array:<br>
<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/matrices.html">https://help.scilab.org/docs/6.1.0/en_US/matrices.html</a> <br>
<br>
I think the documentation should indicate that it applies to
vectors, matrices and hypermatrices<br>
<br>
Another problem is regarding log(). It says that the input
argument is a "constant vector or constant matrix":<br>
<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/log.html">https://help.scilab.org/docs/6.1.0/en_US/log.html</a><br>
<br>
However, it seems that "constant" has a specific meaning in Scilab
as a predefined variable:<br>
<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/section_421ab29126e21a1e1e403ee27a18fda4.html">https://help.scilab.org/docs/6.1.0/en_US/section_421ab29126e21a1e1e403ee27a18fda4.html</a><br>
<br>
As it is worded, it seems that log() is applied to predefined
variables. I think it should refer more clearly to the type double
(it doesn't work, for instance, for integer types such as
int16(2)).<br>
<br>
In the case of log2() the description of arguments is even
stranger:<br>
<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/log2.html">https://help.scilab.org/docs/6.1.0/en_US/log2.html</a><br>
<br>
It confuses the argument section with the description, and it
specifies decimal numbers which isn't a recognized type.<br>
<br>
The function exp(), on the other hand, doesn't indicate an output
argument.<br>
<br>
I think these functions are very similar and their documentation
pages should be consistent with one another<br>
<br>
Regards,<br>
<br>
Federico Miyara <br>
</font><font face="Courier New"> </font>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>