diff options
author | jofret | 2008-05-21 09:53:06 +0000 |
---|---|---|
committer | jofret | 2008-05-21 09:53:06 +0000 |
commit | 4e4209a43336f42f9754b89c4504f30ddd5f1a89 (patch) | |
tree | fb685f4619cefdccb9133874d109d030b0e36ea0 /src/elementaryFunctions/cosh/zcoshs.c | |
parent | 1e61e52ca81e6d1aa988010f8ebcc15b8fb4ad7a (diff) | |
download | scilab2c-4e4209a43336f42f9754b89c4504f30ddd5f1a89.tar.gz scilab2c-4e4209a43336f42f9754b89c4504f30ddd5f1a89.tar.bz2 scilab2c-4e4209a43336f42f9754b89c4504f30ddd5f1a89.zip |
* Update COSH algorithm according to Scilab behaviour
* Update Licenses
* Update dependencies
Diffstat (limited to 'src/elementaryFunctions/cosh/zcoshs.c')
-rw-r--r-- | src/elementaryFunctions/cosh/zcoshs.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/elementaryFunctions/cosh/zcoshs.c b/src/elementaryFunctions/cosh/zcoshs.c index d80fd091..a4c072fd 100644 --- a/src/elementaryFunctions/cosh/zcoshs.c +++ b/src/elementaryFunctions/cosh/zcoshs.c @@ -1,21 +1,21 @@ /* -** -*- C -*- -** -** zcoshs.c -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Thu Dec 7 12:05:48 2006 jofret -** Last update Fri Feb 23 16:48:33 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 + * + */ + +/** cosh(z) = cos(i z) */ #include "cosh.h" #include "cos.h" doubleComplex zcoshs(doubleComplex z) { - double real = zreals(z); - double minusImag = -zimags(z); - return (zcoss(DoubleComplex(minusImag, real))); + return (zcoss(DoubleComplex(-zimags(z), zreals(z)))); } |