diff options
Diffstat (limited to 'src/elementaryFunctions/cosh/ccoshs.c')
-rw-r--r-- | src/elementaryFunctions/cosh/ccoshs.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/elementaryFunctions/cosh/ccoshs.c b/src/elementaryFunctions/cosh/ccoshs.c index 2a2958ac..4504bec9 100644 --- a/src/elementaryFunctions/cosh/ccoshs.c +++ b/src/elementaryFunctions/cosh/ccoshs.c @@ -1,22 +1,20 @@ /* -** -*- C -*- -** -** ccoshs.c -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Thu Dec 7 12:04:28 2006 jofret -** Last update Fri Feb 23 16:48:08 2007 jofret -** -** Copyright INRIA 2006 -*/ + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ #include "cosh.h" #include "cos.h" /** ch(z) = cos(i.z) */ floatComplex ccoshs(floatComplex z) { - float real = creals(z); - float minusImag = -cimags(z); - return (ccoss(FloatComplex(minusImag, real))); + return (ccoss(FloatComplex(-cimags(z), creals(z)))); } |