summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/Trigonometry/coth
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/Trigonometry/coth')
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccotha.c14
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccoths.c12
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcotha.c14
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcoths.c12
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scotha.c15
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scoths.c12
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcotha.c12
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcoths.c12
8 files changed, 98 insertions, 5 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccotha.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccotha.c
index 4e794512..44a366e8 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccotha.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccotha.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include "coth.h"
#include <math.h>
@@ -8,5 +20,5 @@ void ccotha(floatComplex* in, int size,floatComplex* out)
{
out[i] = ccoths(in[i]);
}
- return out;
+
}
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccoths.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccoths.c
index 564b8e69..b7f90263 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccoths.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/ccoths.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include <math.h>
#include "coth.h"
#include <math.h>
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcotha.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcotha.c
index f6304f58..bb54b200 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcotha.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcotha.c
@@ -1,14 +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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include "coth.h"
#include <math.h>
void dcotha(double* in,int size,double* out)
{
- double val;
int i=0;
for(i=0;i<size;i++)
{
out[i]=cosh(in[i])/sinh(in[i]);
- /*printf("The cotangent of %lf is %lf\n", in[i], out[i]);*/
}
}
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcoths.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcoths.c
index bf6bb78d..55c9a5b4 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcoths.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/dcoths.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include <math.h>
#include "coth.h"
#include "cosh.h"
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scotha.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scotha.c
index 3fdf37f7..53351621 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scotha.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scotha.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include "coth.h"
#include <math.h>
@@ -8,7 +20,6 @@ void scotha(float* in,int size,float* out)
for(i=0;i<size;i++)
{
out[i]=cosh(in[i])/sinh(in[i]);
- /*printf("The cotangent of %lf is %lf\n", in[i], out[i]);*/
- }
+ }
}
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scoths.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scoths.c
index 107945e5..2865f566 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scoths.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/scoths.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include <math.h>
#include "coth.h"
#include "cosh.h"
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcotha.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcotha.c
index dcbb2844..206cc43f 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcotha.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcotha.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include "coth.h"
#include <math.h>
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcoths.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcoths.c
index 2eed86bb..8b3b19f5 100644
--- a/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcoths.c
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/coth/zcoths.c
@@ -1,3 +1,15 @@
+/* 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: Shamik Guha
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#include "coth.h"
#include "tanh.h"
#include "tan.h"