Introduction à l'utilisation des fonctions opposées à Math.Pow
Auteur:Eve ColeDate de mise à jour:2025-04-21 23:16:01
var a = [1,2,4,32,128]; var b = []; pour (var i = 0; i <a.length; i ++) {var index = math.log (a [i]) / math.log (2); b.push (index);} // b = [0,1,2,5,7];