warning about "vector ^ scalar" removed from Random/Weibull demo. 95/12695/2
Cedric Delamarre [Fri, 27 Sep 2013 09:48:07 +0000 (11:48 +0200)]
Change-Id: I365481b56d6e525de45c5d9e573e0f743fcb89a1

scilab/modules/randlib/demos/weibull.dem.sce

index d17859c..335881e 100644 (file)
@@ -11,7 +11,7 @@ function [] = WeibullT(n)
     function [y] = Weibull(m, n, Alpha, Beta)
         //-------------------------------
         y = rand(m, n, "uniform");
-        y = (Beta*( - log(1-y)))^(1/Alpha);
+        y = (Beta*( - log(1-y))).^(1/Alpha);
     endfunction
 
     [lhs, rhs] = argn(0);