# [Scilab-users] log10 doesn't support hyperarrays

3 messages
Open this post in threaded view
|

## [Scilab-users] log10 doesn't support hyperarrays

 Dear all, I've noticed that log10 doesn't support hyperarrays, while log (natural logrithm) does (even if the documantation in both cases says they are applicable to vectors and matrices: a = rand(3,2,2); b = log(a) c = log10(a) d = log(a)/log(10) --> b = log(a)  b  = (:,:,1)   -0.6847401  -0.0808957   -1.051648   -0.0525378   -0.9483546  -1.06847  (:,:,2)   -0.9781346  -0.6944493   -0.3091181  -1.3323448   -1.3410298  -0.6436786 --> c = log10(a)  c  =   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 --> d = log(a)/log(10)  d  = (:,:,1)   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 (:,:,2)   -0.4247984  -0.3015955   -0.1342483  -0.57863    -0.5824019  -0.279546 As can be seen, log10 is yielding just the first page. It's strange, since log10 can be easily obtained from log, but both functions are primitives Regards, Federico Miyara _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
 Hi Frederico, You are right, we have to (and will) fix this before the release S. Le 21/01/2020 à 09:41, Federico Miyara a écrit : Dear all, I've noticed that log10 doesn't support hyperarrays, while log (natural logrithm) does (even if the documantation in both cases says they are applicable to vectors and matrices: a = rand(3,2,2); b = log(a) c = log10(a) d = log(a)/log(10) --> b = log(a)  b  = (:,:,1)   -0.6847401  -0.0808957   -1.051648   -0.0525378   -0.9483546  -1.06847  (:,:,2)   -0.9781346  -0.6944493   -0.3091181  -1.3323448   -1.3410298  -0.6436786 --> c = log10(a)  c  =   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 --> d = log(a)/log(10)  d  = (:,:,1)   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 (:,:,2)   -0.4247984  -0.3015955   -0.1342483  -0.57863    -0.5824019  -0.279546 As can be seen, log10 is yielding just the first page. It's strange, since log10 can be easily obtained from log, but both functions are primitives Regards, Federico Miyara ```_______________________________________________ users mailing list [hidden email] https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users ``` ```-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet ``` _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
 Stéphane, Thanks. Federico On 21/01/2020 06:14, Stéphane Mottelet wrote: Hi Frederico, You are right, we have to (and will) fix this before the release S. Le 21/01/2020 à 09:41, Federico Miyara a écrit : Dear all, I've noticed that log10 doesn't support hyperarrays, while log (natural logrithm) does (even if the documantation in both cases says they are applicable to vectors and matrices: a = rand(3,2,2); b = log(a) c = log10(a) d = log(a)/log(10) --> b = log(a)  b  = (:,:,1)   -0.6847401  -0.0808957   -1.051648   -0.0525378   -0.9483546  -1.06847  (:,:,2)   -0.9781346  -0.6944493   -0.3091181  -1.3323448   -1.3410298  -0.6436786 --> c = log10(a)  c  =   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 --> d = log(a)/log(10)  d  = (:,:,1)   -0.2973788  -0.0351326   -0.4567249  -0.0228169   -0.4118652  -0.4640306 (:,:,2)   -0.4247984  -0.3015955   -0.1342483  -0.57863    -0.5824019  -0.279546 As can be seen, log10 is yielding just the first page. It's strange, since log10 can be easily obtained from log, but both functions are primitives Regards, Federico Miyara ```_______________________________________________ users mailing list [hidden email] https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users ``` ```-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet ``` ```_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users ``` _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users