diff options
author | siddhu8990 | 2017-05-22 15:13:54 +0530 |
---|---|---|
committer | siddhu8990 | 2017-05-22 15:13:54 +0530 |
commit | 02a004ea1500c403ac1a18a52aaf79aaeb7280ed (patch) | |
tree | 5e55f872e363922a21ad91165628e68e16fea8a3 /2.3-1/src/c/elementaryFunctions/logspace | |
parent | 5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7 (diff) | |
parent | de82d12658979cd70439f977742f80fac9f6521f (diff) | |
download | Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.gz Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.bz2 Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.zip |
Bugs fixed for Scilab 6.0
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/logspace')
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/logspace/dlogspacea.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/logspace/dlogspacea.c b/2.3-1/src/c/elementaryFunctions/logspace/dlogspacea.c index 3a9caf15..62802f77 100644 --- a/2.3-1/src/c/elementaryFunctions/logspace/dlogspacea.c +++ b/2.3-1/src/c/elementaryFunctions/logspace/dlogspacea.c @@ -9,14 +9,16 @@ Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ - +#include <math.h> +#include <stdlib.h> #include "logspace.h" -#include<math.h> + void dlogspacea(double *low_limit,int _row,double *up_limit,double range_num,double *out) { int i,j,k; double temp; - double step_iterate[_row]; /* for each row the spacing between two values is different.*/ + double *step_iterate; /* for each row the spacing between two values is different.*/ + step_iterate = (double*) malloc((double)_row*sizeof(double)); for(i=0;i<_row;i++) { step_iterate[i] = pow(10,((up_limit[i]-low_limit[i])/(range_num-1))); |