diff options
author | Abhinav Dronamraju | 2017-07-10 21:01:37 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-10 21:01:37 +0530 |
commit | c1874d367d68cb47b82cc7a1173caaf38e9e3d68 (patch) | |
tree | 2e0e39079e6859fac430136d2d86dff6a8a1828c /2.3-1/src/c/elementaryFunctions/issquare | |
parent | 441f3e61481c1de99bbc408292224eb28a62bea7 (diff) | |
download | Scilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.tar.gz Scilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.tar.bz2 Scilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.zip |
Nthroot added
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/issquare')
8 files changed, 204 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/issquare/dissquarea.c b/2.3-1/src/c/elementaryFunctions/issquare/dissquarea.c new file mode 100644 index 00000000..840190d0 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/dissquarea.c @@ -0,0 +1,26 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" +char dissquarea(double* inp, int size1, int size2) +{ + char out= 'F' ; + if(size1==size2) + { + out = 'T'; + } + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/dissquares.c b/2.3-1/src/c/elementaryFunctions/issquare/dissquares.c new file mode 100644 index 00000000..ac6d67e1 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/dissquares.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" + +char dissquares(double inp) +{ + double out='T'; + + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/gissquarea.c b/2.3-1/src/c/elementaryFunctions/issquare/gissquarea.c new file mode 100644 index 00000000..73e2b37e --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/gissquarea.c @@ -0,0 +1,27 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" +#include "string.h" +char gissquarea(char *inp, int size1, int size2) +{ + char out='F'; + if(size1==size2) + { + out = 'T'; + } + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/gissquares.c b/2.3-1/src/c/elementaryFunctions/issquare/gissquares.c new file mode 100644 index 00000000..572afd19 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/gissquares.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" + +char gissquares(char inp) +{ + char out='T'; + + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/sissquarea.c b/2.3-1/src/c/elementaryFunctions/issquare/sissquarea.c new file mode 100644 index 00000000..856cb818 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/sissquarea.c @@ -0,0 +1,26 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" +char sissquarea(float* inp, int size1, int size2) +{ + char out='F'; + if(size1==size2) + { + out = 'T'; + } + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/sissquares.c b/2.3-1/src/c/elementaryFunctions/issquare/sissquares.c new file mode 100644 index 00000000..1a6fbf85 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/sissquares.c @@ -0,0 +1,24 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" + +char sissquares(float inp) +{ + char out='T'; + + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/zissquarea.c b/2.3-1/src/c/elementaryFunctions/issquare/zissquarea.c new file mode 100644 index 00000000..023b8fc6 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/zissquarea.c @@ -0,0 +1,28 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "doubleComplex.h" +#include "issquare.h" +#include "types.h" + +char zissquarea(doubleComplex *inp, int size1, int size2) +{ + char out='F'; + if(size1==size2) + { + out = 'T'; + } + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/issquare/zissquares.c b/2.3-1/src/c/elementaryFunctions/issquare/zissquares.c new file mode 100644 index 00000000..2c1bb566 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/issquare/zissquares.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Abhinav Dronamraju + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "issquare.h" +#include "types.h" +#include "doubleComplex.h" + +char zissquares(doubleComplex inp) +{ + char out='T'; + + return out; +} |